Function at 0x405850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530668
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x559024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x34], ecx
lea edi, [esi + 0x50]
push edi
mov ecx, str.BrCcAdvnc.sdd
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], eax
call fcn.00466b30
lea eax, [esi + 0x60]
push str.AdvModelList_Text
mov dword [ebp - 0x28], eax
call fcn.004fcf00
mov eax, dword [edi + 0x10]
xor esi, esi
cmp eax, esi
jne 0x4058b8
mov eax, 0x538640
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x38], esi
cmp dword [edi + 8], esi
jle 0x4058e8
cmp eax, esi
je 0x4058e8
cmp word [eax], si
je 0x4058e8
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x4058db
mov ecx, 0x538640
push ecx
push esi
push str.PosiX
push eax
call ebx
mov dword [ebp - 0x38], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4058f4
mov ecx, 0x538640
mov dword [ebp - 0x54], esi
cmp dword [edi + 8], esi
jle 0x40591e
cmp ecx, esi
je 0x40591e
cmp word [ecx], si
je 0x40591e
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x405911
mov eax, 0x538640
push eax
push esi
push str.PosiY
push ecx
call ebx
mov dword [ebp - 0x54], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x40592a
mov ecx, 0x538640
mov dword [ebp - 0x4c], esi
cmp dword [edi + 8], esi
jle 0x405954
cmp ecx, esi
je 0x405954
cmp word [ecx], si
je 0x405954
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x405947
mov eax, 0x538640
push eax
push esi
push str.Width
push ecx
call ebx
mov dword [ebp - 0x4c], eax
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x405960
mov ecx, 0x538640
mov dword [ebp - 0x2c], esi
cmp dword [edi + 8], esi
jle 0x40598a
cmp ecx, esi
je 0x40598a
cmp word [ecx], si
je 0x40598a
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x40597d
mov eax, 0x538640
push eax
push esi
push str.Height
push ecx
call ebx
mov dword [ebp - 0x2c], eax
push 0x2af8
lea edx, [ebp - 0xbc]
push edx
mov ecx, 0x55a400
call fcn.00467b90
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x48], eax
cmp eax, esi
jne 0x4059b7
mov dword [ebp - 0x48], 0x538640
mov ecx, dword [edi + 0x10]
cmp ecx, esi
jne 0x4059c3
mov ecx, 0x538640
xor ebx, ebx
mov dword [ebp - 0x50], ebx
cmp dword [edi + 8], esi
jle 0x4059f5
cmp ecx, esi
je 0x4059f5
cmp word [ecx], si
je 0x4059f5
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4059e2
mov eax, 0x538640
push eax
push esi
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov dword [ebp - 0x50], eax
push 0x7532
lea eax, [ebp - 0xb0]
push eax
mov ecx, 0x55a400
mov byte [ebp - 0xd4], 1
mov byte [ebp - 0xcc], 0
mov byte [ebp - 0xc4], 0
call fcn.00467b90
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xb0]
cmp eax, esi
jne 0x405a33
mov eax, 0x538640
mov esi, dword [ebp - 0x30]
add esi, 0x70
push eax
lea eax, [esi + 0x64]
call fcn.004fcf00
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x34]
mov dword [esi + 0x50], edx
mov edx, dword [ebp - 0x48]
mov dword [esi + 0x54], eax
mov dword [esi + 0x4c], ecx
mov ecx, dword [ebp - 0x2c]
push edx
lea eax, [esi + 0x3c]
push eax
mov dword [esi + 0x58], ecx
mov dword [esi + 0x60], 0x24
mov dword [esi + 0x5c], 1
call fcn.0046a1f0
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xcc]
mov dword [esi + 0x70], ecx
mov ecx, dword [ebp - 0xc4]
mov eax, 0xffffff
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0xc8]
mov dword [esi + 0x78], edx
mov edx, dword [ebp - 0xc0]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
jle 0x405aed
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
jle 0x405aed
mov edx, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x3c]
push eax
push edx
push esi
mov ebx, ecx
mov eax, 0x10000000
mov edx, 0x1965
call fcn.004fdeb0
xor ebx, ebx
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
jne 0x405b14
mov eax, 0x538640
push 0x404
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0x34]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x28]
push str.AdvModelList_ListBox
call fcn.004fcf00
mov eax, dword [edi + 0x10]
mov ecx, eax
cmp eax, ebx
jne 0x405b4d
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], ebx
jle 0x405b77
cmp ecx, ebx
je 0x405b77
cmp word [ecx], bx
je 0x405b77
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x405b69
mov eax, 0x538640
push eax
push ebx
push str.OffsetX
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x10]
cmp eax, ebx
jne 0x405b8c
mov eax, 0x538640
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 8], ebx
jle 0x405bba
cmp eax, ebx
je 0x405bba
cmp word [eax], bx
je 0x405bba
mov ecx, dword [edi + 4]
cmp ecx, ebx
jne 0x405ba9
mov ecx, 0x538640
push ecx
push ebx
push str.PosiY
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jne 0x405bc6
mov ecx, 0x538640
xor esi, esi
cmp dword [edi + 8], ebx
jle 0x405bf2
cmp ecx, ebx
je 0x405bf2
cmp word [ecx], bx
je 0x405bf2
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x405be2
mov eax, 0x538640
push eax
push ebx
push str.Width
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
jne 0x405bfe
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], ebx
jle 0x405c2a
cmp ecx, ebx
je 0x405c2a
cmp word [ecx], bx
je 0x405c2a
mov edi, dword [edi + 4]
mov eax, edi
cmp edi, ebx
jne 0x405c1c
mov eax, 0x538640
push eax
push ebx
push str.Height
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0xbc]
cmp ecx, ebx
jne 0x405c39
mov ecx, 0x538640
mov edx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x30]
push ebx
push edx
mov edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push esi
mov esi, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x3c]
push edx
push 0x1645
push esi
push eax
add edi, 0x100
push edi
mov eax, ecx
mov edx, 0x10000003
call fcn.004253b0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x108]
push eax
push edi
push 0x832b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xa4], vtable.CMemMap.0
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], vtable.CSemaphore.0
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x78], bl
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], vtable.CFileRW.0
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x64], bl
mov eax, str.CcMemMapObjModelList
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.00440b10
cmp eax, ebx
je 0x405d28
mov ecx, str.CcMemMapObjModelList
lea ebx, [ebp - 0xa4]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 1
call fcn.004378c0
test al, al
jne 0x405d36
mov esi, ebx
call fcn.004377e0
jmp 0x405e15
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x74], edx
jmp 0x405e17
cmp al, 1
jne 0x405e15
lea esi, [ebp - 0xa4]
call fcn.0046c970
xor ebx, ebx
mov dword [ebp - 0x28], eax
cmp eax, ebx
jle 0x405d9b
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
lea esi, [ebp - 0xa4]
call fcn.0046c9e0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x405d6f
mov eax, 0x538640
push ebx
push eax
mov esi, edi
call fcn.00425690
mov eax, dword [ebp - 0x48]
xor esi, esi
cmp eax, esi
je 0x405d93
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
inc ebx
cmp ebx, dword [ebp - 0x28]
jl 0x405d52
xor ebx, ebx
cmp byte [ebp - 0x78], 0
je 0x405df2
cmp dword [ebp - 0x7c], ebx
je 0x405df2
mov eax, dword [ebp - 0x98]
cmp eax, ebx
je 0x405dbd
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x98], ebx
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
je 0x405dd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x9c], ebx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x78], 0
cmp eax, ebx
je 0x405df2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x8c], ebx
mov eax, dword [ebp - 0x68]
cmp eax, 0xffffffff
je 0x405e08
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], 0xffffffff
mov ecx, dword [ebp - 0x30]
push ecx
mov byte [ebp - 0x64], 0
call fcn.00405ee0
xor ebx, ebx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x108]
push 0x4050f0
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [0x55e1e8], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x405e50
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x68]
or esi, 0xffffffff
mov dword [ebp - 0x70], vtable.CFileRW.0
cmp eax, esi
je 0x405e6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], esi
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 1
call fcn.004375d0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
je 0x405ea3
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xbc]
cmp eax, ebx
je 0x405eb9
push eax
call fcn.005134a7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret 4