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

Disassembly:
push 0xffffffffffffffff
push 0x5090db
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xdc]
mov edi, ecx
mov esi, dword [esp + 0xc0]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x50]
call fcn.004b620f
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], vtable.CBitmap.0
mov ecx, dword [esp + 0xe0]
mov ebx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
lea eax, [esp + 0x50]
push eax
push ecx
push ebp
push ebx
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0xd0], 1
call fcn.00437140
add esp, 0x18
test eax, eax
jne 0x437750
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], al
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00401cd0
lea ecx, [esp + 0x50]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004b667c
xor eax, eax
jmp 0x437b16
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x4377e0
mov edx, dword [esp + 0xd4]
mov ebp, dword [ebp]
mov eax, dword [edx]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
cmp ebp, eax
jne 0x437784
mov eax, dword [esp + 0xe0]
mov edx, dword [eax]
cmp edx, dword [ebx]
je 0x4377e0
fild dword [esp + 0x20]
mov eax, dword [esp + 0xe0]
fidiv dword [esp + 0x28]
fild dword [ebx]
fidiv dword [eax]
fild dword [ecx]
fmul st(2)
call fcn.004ced60
mov ebp, dword [esp + 0xcc]
fild dword [ebp + 4]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.004ced60
fild dword [ebp + 8]
mov dword [esp + 0x6c], eax
fmulp st(2)
fxch st(1)
call fcn.004ced60
fimul dword [ebp + 0xc]
mov dword [esp + 0x70], eax
call fcn.004ced60
lea ecx, [esp + 0x68]
mov dword [esp + 0x74], eax
mov dword [esp + 0xcc], ecx
mov edx, dword [esp + 0x54]
push 0xc
mov ebp, 4
push edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], 3
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x10
jne 0x437808
lea ecx, [ebp - 2]
jmp 0x437812
cmp eax, 8
jne 0x43781c
mov ecx, 1
mov ebp, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0xc], eax
je 0x437893
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
push eax
mov eax, dword [esp + 0xc8]
push ecx
push edx
mov edx, dword [ebx]
push eax
mov eax, dword [esp + 0xe4]
push esi
push edi
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [eax]
push edx
push ecx
call fcn.00436ea0
add esp, 0x24
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0xb8], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00401cd0
lea ecx, [esp + 0x50]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004b667c
mov eax, esi
jmp 0x437b16
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x58]
push 7
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call fcn.004b68bb
lea ecx, [esp + 0x78]
mov edi, eax
call fcn.00423cf0
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xbc], 2
call fcn.00424aa0
mov ecx, dword [esp + 0x7c]
xor eax, eax
cmp dword [ebx], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
jle 0x437ad4
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x437911
cmp eax, dword [ecx + 0xc]
jg 0x437ad4
cmp eax, dword [ecx + 4]
jl 0x437b64
mov edx, dword [esp + 0xd4]
mov edi, dword [edx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edi
test edi, edi
jle 0x437b64
jmp 0x437936
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
mov ecx, edi
imul ecx, eax
add ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
imul ecx, ebp
lea ebx, [ecx + edx]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
push ebx
call fcn.00436d80
add esp, 0x10
test eax, eax
je 0x437b3b
mov ecx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x4c], eax
test ecx, ecx
jbe 0x437a3c
mov edx, dword [esp + 0x48]
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], ebx
lea ebx, [ebx]
mov edx, dword [esp + 0x1c]
add edx, eax
cmp edx, edi
jge 0x437b3b
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
jbe 0x437a27
mov eax, dword [esp + 0xd8]
mov edx, dword [eax]
mov ebx, dword [esp + 0x40]
mov esi, ecx
imul esi, ebp
imul edi, ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
add ecx, eax
cmp ecx, dword [esp + 0x64]
jge 0x437b30
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc4]
push edx
push eax
push ebx
push ebp
call fcn.00436d80
add esp, 0x10
test eax, eax
je 0x437b30
mov eax, dword [esp + 0x34]
inc eax
add ebp, edi
add ebx, esi
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x3c]
jb 0x4379ca
mov esi, dword [esp + 0xc0]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x38], ebp
add dword [esp + 0x40], ebp
inc eax
mov dword [esp + 0x4c], eax
cmp eax, ecx
jb 0x437990
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
add edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], eax
add eax, ecx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0xc8]
mov dword [esi + 8], edx
test eax, eax
je 0x437a7a
push esi
push eax
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x437b3b
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x437a9d
push esi
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x437b3b
mov edi, dword [esp + 0xd0]
test edi, edi
je 0x437acc
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi]
add eax, dword [esi + 8]
sar ecx, 1
cdq
sub eax, edx
mov edx, dword [edi + 4]
sar eax, 1
cmp ecx, edx
jl 0x437b3b
jne 0x437acc
cmp eax, dword [edi]
jle 0x437b3b
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xb8], 1
call fcn.00423d10
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00401cd0
lea ecx, [esp + 0x50]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004b667c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
mov esi, dword [esp + 0xc0]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xd4]
mov eax, dword [edx]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jl 0x437930
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xd8]
inc eax
cmp eax, dword [ebx]
mov dword [esp + 0x18], eax
jl 0x4378f4
jmp 0x437ad4