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

Disassembly:
push 0xffffffffffffffff
push 0x4777c0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0xa4]
push 0xffffff
lea edx, [esp + 0x74]
push edx
call fcn.00472c36
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x48], eax
sub eax, ebx
sub eax, 6
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x78]
mov edx, eax
mov eax, 0x38e38e39
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esi, [ebx + eax*8]
add esi, eax
mov dword [esp + 0x44], edi
sub edi, ebp
sub edi, 6
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebp
lea edi, [ecx + eax*8]
add edi, eax
add ebp, 3
mov dword [esp + 0x40], ebx
add ebx, 3
mov eax, ebp
sub eax, ecx
mov ecx, ebx
sub ecx, dword [esp + 0x40]
add edi, eax
add esi, ecx
mov ecx, edi
add ecx, 3
mov eax, ebx
lea edx, [ebp - 3]
sub eax, 3
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], esi
add dword [esp + 0x6c], 3
push 0xc0c0c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
call fcn.00472bb8
test eax, eax
je 0x431999
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 4]
push eax
lea eax, [esp + 0x64]
push eax
push edx
call dword [sym.imp.USER32.dll_FrameRect]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CBrush.0
call fcn.00404000
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x431b70
sub edi, ebp
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
sub esi, ebx
mov eax, 0x38e38e39
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edi
fild dword [esp + 0x2c]
mov dword [esp + 0x28], eax
test edx, edx
jge 0x431a10
fadd qword [0x4885e0]
fidiv dword [esp + 0x24]
or edx, 0xffffffff
xor esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edx
mov edx, 8
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
fidiv dword [esp + 0x28]
fstp qword [esp + 0x3c]
test ecx, ecx
jbe 0x431b22
mov eax, dword [esp + 0x18]
fild dword [esp + 0x18]
test eax, eax
jge 0x431a60
fadd qword [0x4885e0]
fdiv qword [esp + 0x3c]
call fcn.00474560
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + ecx]
cmp ecx, esi
mov dword [esp + 0x2c], eax
jle 0x431a82
mov esi, ecx
cmp dword [esp + 0x14], eax
je 0x431af7
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cdq
idiv edi
cmp edx, dword [esp + 0x20]
je 0x431aed
lea ecx, [ebx + eax*8]
add ecx, eax
lea eax, [ebp + edx*8]
add eax, edx
mov dword [esp + 0x20], edx
mov edx, eax
sub edx, dword [esp + 0x50]
mov dword [esp + 0x50], eax
add dword [esp + 0x58], edx
mov eax, ecx
sub eax, dword [esp + 0x54]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + esi*4]
add dword [esp + 0x5c], eax
mov ecx, dword [esp + 0xa4]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00472c36
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jne 0x431a88
cmp dword [esp + 0x1c], 0
je 0x431b08
mov dword [esp + 0x1c], 0
xor esi, esi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0xb4]
jb 0x431a4e
mov eax, dword [esp + 0x28]
lea edx, [ebx + eax*8]
lea eax, [eax + edx - 9]
lea ecx, [ebp + edi*8]
lea edi, [edi + ecx - 9]
mov edx, edi
sub edx, dword [esp + 0x50]
mov ecx, eax
sub ecx, dword [esp + 0x54]
add dword [esp + 0x58], edx
mov edx, dword [esp + 0xac]
add dword [esp + 0x5c], ecx
mov dword [esp + 0x54], eax
mov eax, dword [edx + esi*4]
mov esi, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov dword [esp + 0x58], edi
call fcn.00472c36
jmp 0x431b77
mov esi, dword [esp + 0xa4]
lea ecx, [esp + 0x80]
call fcn.00472bee
xor edi, edi
mov dword [esp + 0x9c], edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x84]
call fcn.00472c1e
mov ebx, vtable.CBitmap.0
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x9c], 1
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x60]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x38]
call fcn.004728a6
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x431bf5
push eax
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
push 0xf0f0f0
push ecx
push edx
push edi
push edi
lea ecx, [esp + 0x94]
call fcn.00472f72
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x1a], 0x5a
mov byte [esp + 0x19], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x88]
sub eax, edx
push eax
sub ecx, edi
push ecx
push 0
push 0
push ebp
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov byte [esp + 0x9c], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
call fcn.00404000
lea ecx, [esp + 0x80]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00472bf4
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret