Function at 0x408360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.KCPROFKXP::LoadProfileFromKXP____s___d_n
call fcn.00413880
add esp, 0xc
push 0
push 0
push 0x90
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
jmp 0x4083be
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x1054]
movsx ecx, word [eax + 0xc]
cmp dword [ebp - 0x10], ecx
jge 0x4087f4
push 0
lea edx, [ebp - 0xc]
push edx
push 0x2bc
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x106c]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x106c]
push edx
push str.__s_n
call fcn.00413880
add esp, 8
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x106c]
mov ecx, dword [ecx + 0x22c]
add ecx, dword [eax + 0x230]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x106c]
add ecx, dword [eax + 0x234]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x106c]
add ecx, dword [eax + 0x238]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x106c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00418740
add esp, 8
test eax, eax
jne 0x4087d7
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x106c]
push eax
push str.Profile_:__s__Size_:__d_n
call fcn.00413880
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
call fcn.00409ed0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
push str._nRegNum___d_n
call fcn.00413880
add esp, 8
cmp dword [ebp - 0x24], 0x19
jle 0x4084c7
push 1
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x1050]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4083b5
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00415b79
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00408800
cmp dword [ebp + 0xc], 1
jne 0x408527
push 3
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str.Default_DevMode
push 0
push str.Factory_Default
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x18]
call eax
jmp 0x40854b
push 3
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str.Default_DevMode
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00415ab7
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x10c
call fcn.00415b79
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x234]
jge 0x408657
push 0x10c
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00409e90
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x108]
push edx
call fcn.00415b79
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x108]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00409e90
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0xc], 1
jne 0x408617
push 3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x108]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push str.Factory_Default
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [eax + 0x18]
call edx
jmp 0x408640
push 3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x108]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00415ab7
add esp, 4
jmp 0x408581
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 0x1078]
test ecx, ecx
je 0x40875b
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x106c]
cmp dword [eax + 0x238], 0
jbe 0x40875b
push 0x10c
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00409e90
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
push str.ProgReg_______n
call fcn.00413880
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
push str.____Name____s__n
call fcn.00413880
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x108]
push ecx
push str.____Size____d__n
call fcn.00413880
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x104]
push eax
push str.____Type____d__n
call fcn.00413880
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x108], 0
jbe 0x408759
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x108]
push eax
call fcn.00415b79
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x108]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00409e90
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
push 3
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x108]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push str.Setup
push 0x429e0c
mov ecx, dword [ebp - 0x4c]
call fcn.004071e0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00415ab7
add esp, 4
jmp 0x40877f
push 1
push 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x106c]
mov eax, dword [edx + 0x238]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00415ab7
add esp, 4
cmp dword [ebp + 0xc], 1
je 0x4087ce
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x106c]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x106c]
add ecx, 0x28
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.00409a80
mov dword [ebp - 8], 1
jmp 0x4087ef
push 1
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4083b5
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8