Function at 0x40e430
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4929aa
mov eax, dword fs:[0]
push eax
sub esp, 0x8cc
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x8c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0x8e0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x90c]
mov ebp, ecx
mov dword [esp + 0x24], ebp
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2ce]
push ecx
mov dword [esp + 0x8f4], 0
mov word [esp + 0x2d0], ax
call fcn.00467850
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xd2]
push eax
mov word [esp + 0xd4], dx
call fcn.00467850
push esi
lea ecx, [esp + 0x2e0]
push 0x104
push ecx
call fcn.00468345
push esi
lea edx, [esp + 0xe4]
push 0x104
push edx
call fcn.00468345
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.00467fa5
add esp, 0x38
test eax, eax
je 0x40e51c
cmp dword [esp + 0x908], 8
jb 0x40e9ae
mov ecx, dword [esp + 0x8f4]
push ecx
call fcn.004440cb
add esp, 4
jmp 0x40e9ae
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x4d6]
push eax
mov word [esp + 0x4d8], dx
call fcn.00467850
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea ecx, [esp + 0x2c4]
push ecx
push 0x103
lea edx, [esp + 0x4d4]
push edx
push 0x49ab28
push str.DlgBkgUI
push 0x49ac24
call esi
lea eax, [esp + 0x4cc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e572
sub eax, edx
sar eax, 1
jne 0x40e5a6
cmp dword [esp + 0x908], 8
jb 0x40e9ae
mov eax, dword [esp + 0x8f4]
push eax
call fcn.004440cb
add esp, 4
jmp 0x40e9ae
lea ecx, [esp + 0xbc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x4cc]
push edx
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0xbc]
push 0
push ecx
call fcn.00467fa5
add esp, 8
test eax, eax
jne 0x40e9a2
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x6de]
push eax
mov word [esp + 0x6e0], dx
call fcn.00467850
add esp, 0xc
lea ecx, [esp + 0x2c4]
push ecx
push 0x103
lea edx, [esp + 0x6dc]
push edx
push 0x49ab28
push str.SkinPreviewInPic
push str.Region
call esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6d8]
push ecx
call fcn.00435d80
add esp, 8
test eax, eax
je 0x40e9a2
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x18]
call fcn.00402bb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x8e8], 1
jge 0x40e674
push 0x80070057
call fcn.004010a0
movzx eax, word [eax]
lea ecx, [esp + 0x14]
test ax, ax
je 0x40e99d
push 3
lea eax, [esp + 0x1c]
push eax
call fcn.00405550
push 0x49ac00
mov ecx, eax
mov byte [esp + 0x8ec], 2
call fcn.00404be0
test eax, eax
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0x8e8], 1
call fcn.00401a10
test bl, bl
je 0x40e6dd
mov ecx, dword [esp + 0x14]
push 0x2050
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
jmp 0x40e80a
push 3
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405550
push 0x49abf8
mov ecx, eax
mov byte [esp + 0x8ec], 3
call fcn.00404be0
test eax, eax
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0x8e8], 1
call fcn.00401a10
test bl, bl
je 0x40e999
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00442c30
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push esi
call fcn.00442a00
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push esi
call fcn.00442970
push esi
mov edi, eax
call fcn.004440cb
push 0x2c
lea edx, [esp + 0x7c]
push 0
push edx
call fcn.00467850
mov eax, dword [esp + 0x58]
mov ebx, dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, 1
mov word [esp + 0x90], dx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x54]
imul edx, eax
mov ecx, eax
neg ecx
mov dword [esp + 0x8c], ecx
mov ecx, 0x18
add esp, 0x38
mov dword [esp + 0x4c], 0x28
mov word [esp + 0x5a], cx
mov dword [esp + 0x60], edx
call ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
mov esi, eax
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x5c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push esi
mov dword [esp + 0x1c], eax
call ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x2c]
push edx
push edi
push eax
call fcn.00467fe0
push edi
call fcn.004440cb
mov edi, dword [esp + 0x28]
add esp, 0x10
test edi, edi
je 0x40e999
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
push edi
mov ecx, ebp
call fcn.004042f0
mov ebp, eax
test ebp, ebp
je 0x40e999
mov ebx, dword [esp + 0x24]
add ebx, 0xa0
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00410650
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call fcn.00405dc0
push eax
lea ecx, [esp + 0x28]
call fcn.00404e20
test al, al
je 0x40e928
push 1
push 1
lea edx, [esp + 0x8f8]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.00435c20
add esp, 0x10
mov esi, eax
push 1
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8f0], 4
call fcn.004050b0
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.00435c20
push esi
push eax
mov byte [esp + 0x900], 5
call fcn.00405230
add esp, 0x18
lea ecx, [esp + 0xa0]
mov bl, al
call fcn.00405180
lea ecx, [esp + 0x84]
mov byte [esp + 0x8e8], 1
call fcn.00405180
test bl, bl
jne 0x40e98d
push 0
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x2c]
call fcn.004050e0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
call fcn.00405dc0
push eax
lea ecx, [esp + 0x28]
call fcn.00404e20
test al, al
jne 0x40e874
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
sub esp, 0x14
mov eax, esp
xor esi, esi
mov dword [eax], esi
xor edi, edi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
sub esp, 0x1c
mov dword [eax + 0xc], edx
lea edx, [esp + 0x920]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov dword [eax + 0x10], ebp
call fcn.00406330
lea eax, [esp + 0x7c]
push eax
call fcn.00407720
add esp, 0x34
push eax
mov ecx, ebx
mov byte [esp + 0x8ec], 6
call fcn.0040e390
lea ecx, [esp + 0x4c]
call fcn.00405180
jmp 0x40e999
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call esi
push edi
call esi
lea ecx, [esp + 0x14]
call fcn.00401a10
lea ecx, [esp + 0x8f0]
call fcn.00405180
mov ecx, dword [esp + 0x8e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c8]
xor ecx, esp
call fcn.004677ab
add esp, 0x8d8
ret 0x20