Function at 0x431a18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46dfcb
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
mov ebx, dword [esp + 0x1bc]
cmp ebx, 5
jle 0x431a10
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
add esp, 0x1b4
ret
push ebp
push esi
push edi
push 0x474568
push 0
push 0x493ce0
call fcn.0040ecb0
mov edi, eax
push 0x40eac0
push edi
mov dword [esp + 0x50], edi
call fcn.00431950
mov ebp, eax
mov eax, dword [esp + 0x1e4]
xor ecx, ecx
add esp, 0x14
or esi, 0xffffffff
cmp eax, esi
setne cl
mov dword [ebp + 0x334], eax
mov eax, ecx
add eax, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], eax
call fcn.004015a0
mov edx, dword [0x481878]
push 0x258
push edx
push 0x18
lea ecx, [esp + 0x38]
mov dword [esp + 0x1cc], 0
call fcn.004015d0
test eax, eax
jne 0x431a9f
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c0], esi
call fcn.004015b0
xor eax, eax
jmp 0x431e69
mov eax, dword [0x493b80]
push eax
call dword [sym.imp.user32.dll_GetDC]
test eax, eax
mov dword [esp + 0x18], eax
je 0x431a88
mov ecx, dword [0x46f3c0]
mov esi, dword [0x46f3b0]
mov edx, dword [0x46f3b4]
mov eax, dword [edi + 0x40]
or ecx, esi
or ecx, edx
or eax, ecx
push 1
push edi
mov dword [edi + 0x40], eax
call dword [edi + 0x58]
mov dword [edi + 0x10], 0xf
mov dword [edi + 0x2c], 0xfe000005
call fcn.0040ea50
mov dword [ebp + 4], eax
call fcn.00412e50
mov esi, dword [esp + 0x1d4]
lea edx, [esp + 0x24]
push edx
push ebx
mov dword [ebp + 0x2f4], eax
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x1c], 0
call fcn.004312c0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sar ecx, 1
mov eax, 0x190
sub eax, ecx
mov dword [esp + 0x50], eax
sar edx, 1
mov eax, 0x12c
sub eax, edx
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x28], eax
jbe 0x431bab
lea eax, [ebp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jmp 0x431b50
mov ecx, dword [esi]
push 0x28
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
push 0x208
call fcn.004287e0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esi + 4]
push eax
call fcn.00428a00
mov eax, dword [ebp + 0x2f4]
mov ecx, dword [esp + 0x2c]
push 0x19
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00428800
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
add ecx, 0x78
dec eax
lea esi, [esi + edx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x431b50
mov eax, dword [esp + 0x18]
mov ecx, dword [0x493b80]
push eax
push ecx
call dword [sym.imp.user32.dll_ReleaseDC]
lea ecx, [ebp + 0x2f8]
call fcn.004226b0
test ebx, ebx
mov dword [esp + 0x10], 0
jbe 0x431c99
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea esi, [ebp + 0x54]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
inc ecx
mov eax, ecx
xor edx, edx
div edi
lea eax, [edi + ecx - 2]
mov dword [esp + 0x1c], ecx
mov ecx, 0xd
mov dword [esp + 0x18], edx
xor edx, edx
div edi
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
lea ecx, [esi - 0x30]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
push ecx
lea ecx, [ebp + 0x2f8]
mov dword [esp + 0x54], 0x208
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], edx
call fcn.004231e0
test al, al
je 0x431e82
mov edi, dword [esp + 0x14]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov byte [esi + 0x44], al
mov eax, dword [esp + 0x1c]
add edi, 0x30
add esi, 0x78
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jb 0x431be3
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1d0]
or esi, 0xffffffff
cmp eax, esi
je 0x431d70
mov ecx, dword [esp + 0x38]
xor edx, edx
lea eax, [ebx + 1]
div ecx
lea eax, [ecx + ebx - 1]
lea edi, [esp + 0x80]
mov esi, edx
xor edx, edx
div ecx
xor eax, eax
mov ecx, 0xd
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], esi
add ecx, 0x1b8
mov dword [esp + 0x80], ecx
lea ecx, [ebp + 0x2f8]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], 0x50
mov dword [esp + 0x8c], 0x23
mov dword [esp + 0x90], edx
mov dword [esp + 0x9c], edx
mov edx, ebx
imul edx, edx, 0x78
lea esi, [edx + ebp]
lea eax, [esi + 0x24]
lea edx, [ebx + ebx*2]
mov dword [esp + 0xa0], eax
shl edx, 4
lea eax, [esp + 0x7c]
add edx, edi
push eax
mov dword [esp + 0x88], edx
call fcn.004231e0
test al, al
je 0x431e82
mov edi, dword [esp + 0x3c]
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], 1
mov dword [esi + 0x5c], eax
mov byte [esi + 0x98], al
or esi, 0xffffffff
push ebp
lea ebx, [ebp + 0x2f8]
push 0x431250
mov ecx, ebx
call fcn.00422100
mov ecx, ebx
call fcn.00422440
mov ecx, dword [0x4823d0]
push ecx
push 0x493ce8
lea edx, [esp + 0xbc]
push 0x470f84
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov eax, dword [0x4823d4]
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x50]
push edx
add ebp, 8
call fcn.00402250
mov eax, dword [esp + 0x54]
add esp, 0x30
push esi
push 0x800
push eax
mov ecx, ebp
call fcn.0040fd40
mov ecx, dword [esp + 0x24]
push ecx
mov bl, al
call dword [sym.imp.kernel32.dll_CloseHandle]
test bl, bl
je 0x431a88
mov edx, 0x431770
test edx, edx
mov eax, 0x431770
jne 0x431e09
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], eax
mov eax, 0x4310c0
xor ebx, ebx
test eax, eax
mov dword [edi + 0x18], ebx
mov eax, 0x4310c0
jne 0x431e22
mov eax, dword [edi + 0x34]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ebx
mov ecx, dword [0x46f3b4]
mov ebp, dword [edi + 0x40]
not ecx
and ebp, ecx
mov dword [edi + 0x40], ebp
mov edx, dword [0x46f3c0]
mov eax, ebp
or eax, edx
push ebx
push edi
mov dword [edi + 0x40], eax
call dword [edi + 0x58]
push ebx
push edi
call fcn.0040eb80
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c0], esi
call fcn.004015b0
mov eax, 1
mov ecx, dword [esp + 0x1b8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.004015b0
xor eax, eax
jmp 0x431e69