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

Disassembly:
push 0xffffffffffffffff
push 0x4ffc2b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6503d0]
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.004ad057
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.00437850
add esp, 0x18
test eax, eax
jne 0x437e60
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], al
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00401e10
lea ecx, [esp + 0x50]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004ad485
xor eax, eax
jmp 0x438226
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x437ef0
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 0x437e94
mov eax, dword [esp + 0xe0]
mov edx, dword [eax]
cmp edx, dword [ebx]
je 0x437ef0
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.004c5a60
mov ebp, dword [esp + 0xcc]
fild dword [ebp + 4]
mov dword [esp + 0x68], eax
fmul st(1)
call fcn.004c5a60
fild dword [ebp + 8]
mov dword [esp + 0x6c], eax
fmulp st(2)
fxch st(1)
call fcn.004c5a60
fimul dword [ebp + 0xc]
mov dword [esp + 0x70], eax
call fcn.004c5a60
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 0x437f18
lea ecx, [ebp - 2]
jmp 0x437f22
cmp eax, 8
jne 0x437f2c
mov ecx, 1
mov ebp, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
cmp dword [edi + 0xc], eax
je 0x437fa3
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.004375b0
add esp, 0x24
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0xb8], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00401e10
lea ecx, [esp + 0x50]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004ad485
mov eax, esi
jmp 0x438226
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.004ad6c4
lea ecx, [esp + 0x78]
mov edi, eax
call fcn.00431330
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xbc], 2
call fcn.00432040
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 0x4381e4
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x438021
cmp eax, dword [ecx + 0xc]
jg 0x4381e4
cmp eax, dword [ecx + 4]
jl 0x438274
mov edx, dword [esp + 0xd4]
mov edi, dword [edx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edi
test edi, edi
jle 0x438274
jmp 0x438046
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.00437490
add esp, 0x10
test eax, eax
je 0x43824b
mov ecx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x4c], eax
test ecx, ecx
jbe 0x43814c
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 0x43824b
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
jbe 0x438137
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 0x438240
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc4]
push edx
push eax
push ebx
push ebp
call fcn.00437490
add esp, 0x10
test eax, eax
je 0x438240
mov eax, dword [esp + 0x34]
inc eax
add ebp, edi
add ebx, esi
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x3c]
jb 0x4380da
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 0x4380a0
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 0x43818a
push esi
push eax
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x43824b
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4381ad
push esi
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x43824b
mov edi, dword [esp + 0xd0]
test edi, edi
je 0x4381dc
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 0x43824b
jne 0x4381dc
cmp eax, dword [edi]
jle 0x43824b
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x78]
mov byte [esp + 0xb8], 1
call fcn.00431350
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00401e10
lea ecx, [esp + 0x50]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004ad485
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 0x438040
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xd8]
inc eax
cmp eax, dword [ebx]
mov dword [esp + 0x18], eax
jl 0x438004
jmp 0x4381e4