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

Disassembly:
push 0xffffffffffffffff
push 0x49262a
mov eax, dword fs:[0]
push eax
sub esp, 0x8cc
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x8c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
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.00467480
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xd2]
push eax
mov word [esp + 0xd4], dx
call fcn.00467480
push esi
lea ecx, [esp + 0x2e0]
push 0x104
push ecx
call fcn.00467f75
push esi
lea edx, [esp + 0xe4]
push 0x104
push edx
call fcn.00467f75
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.00467bd5
add esp, 0x38
test eax, eax
je 0x40e4ec
cmp dword [esp + 0x908], 8
jb 0x40e97e
mov ecx, dword [esp + 0x8f4]
push ecx
call fcn.00443d03
add esp, 4
jmp 0x40e97e
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x4d6]
push eax
mov word [esp + 0x4d8], dx
call fcn.00467480
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 0x499b28
push str.DlgBkgUI
push 0x499c24
call esi
lea eax, [esp + 0x4cc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e542
sub eax, edx
sar eax, 1
jne 0x40e576
cmp dword [esp + 0x908], 8
jb 0x40e97e
mov eax, dword [esp + 0x8f4]
push eax
call fcn.00443d03
add esp, 4
jmp 0x40e97e
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.00467bd5
add esp, 8
test eax, eax
jne 0x40e972
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x6de]
push eax
mov word [esp + 0x6e0], dx
call fcn.00467480
add esp, 0xc
lea ecx, [esp + 0x2c4]
push ecx
push 0x103
lea edx, [esp + 0x6dc]
push edx
push 0x499b28
push str.SkinPreviewInPic
push str.Region
call esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6d8]
push ecx
call fcn.00435a50
add esp, 8
test eax, eax
je 0x40e972
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x8e8], 1
jge 0x40e644
push 0x80070057
call fcn.004010a0
movzx eax, word [eax]
lea ecx, [esp + 0x14]
test ax, ax
je 0x40e96d
push 3
lea eax, [esp + 0x1c]
push eax
call fcn.00405500
push 0x499c00
mov ecx, eax
mov byte [esp + 0x8ec], 2
call fcn.00404b80
test eax, eax
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0x8e8], 1
call fcn.004018e0
test bl, bl
je 0x40e6ad
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 0x40e7da
push 3
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00405500
push 0x499bf8
mov ecx, eax
mov byte [esp + 0x8ec], 3
call fcn.00404b80
test eax, eax
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0x8e8], 1
call fcn.004018e0
test bl, bl
je 0x40e969
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00442880
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push esi
call fcn.00442650
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push esi
call fcn.004425c0
push esi
mov edi, eax
call fcn.00443d03
push 0x2c
lea edx, [esp + 0x7c]
push 0
push edx
call fcn.00467480
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.00467c10
push edi
call fcn.00443d03
mov edi, dword [esp + 0x28]
add esp, 0x10
test edi, edi
je 0x40e969
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.004042e0
mov ebp, eax
test ebp, ebp
je 0x40e969
mov ebx, dword [esp + 0x24]
add ebx, 0xa0
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00405d70
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call fcn.00405da0
push eax
lea ecx, [esp + 0x28]
call fcn.00404dc0
test al, al
je 0x40e8f8
push 1
push 1
lea edx, [esp + 0x8f8]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.004358f0
add esp, 0x10
mov esi, eax
push 1
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8f0], 4
call fcn.00405080
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.004358f0
push esi
push eax
mov byte [esp + 0x900], 5
call fcn.004051d0
add esp, 0x18
lea ecx, [esp + 0xa0]
mov bl, al
call fcn.004053a0
lea ecx, [esp + 0x84]
mov byte [esp + 0x8e8], 1
call fcn.004053a0
test bl, bl
jne 0x40e95d
push 0
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x2c]
call fcn.004050b0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
call fcn.00405da0
push eax
lea ecx, [esp + 0x28]
call fcn.00404dc0
test al, al
jne 0x40e844
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.00406340
lea eax, [esp + 0x7c]
push eax
call fcn.004076f0
add esp, 0x34
push eax
mov ecx, ebx
mov byte [esp + 0x8ec], 6
call fcn.0040e360
lea ecx, [esp + 0x4c]
call fcn.004053a0
jmp 0x40e969
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call esi
push edi
call esi
lea ecx, [esp + 0x14]
call fcn.004018e0
lea ecx, [esp + 0x8f0]
call fcn.004053a0
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.004673e3
add esp, 0x8d8
ret 0x20