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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dbf80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.0050b0a0
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], esi
fld qword [esi + 0x48]
fild dword [ebp + 0xc]
lea ecx, [eax + eax]
mov dword [esp + 0x10], ecx
fstp qword [esp + 0x1c]
fild dword [esp + 0x10]
fstp qword [esp + 0x34]
fld qword [esp + 0x1c]
fmul st(1)
fadd qword [esp + 0x34]
call sub.msvcrt.dll__ftol
fstp st(0)
fld qword [esi + 0x50]
fld qword [esp + 0x1c]
fmul st(1)
mov ebx, eax
add ebx, 8
fadd qword [esp + 0x34]
mov dword [esp + 0x10], ebx
call sub.msvcrt.dll__ftol
add eax, 8
mov edi, eax
mov dword [esp + 0x3c], eax
imul edi, ebx
fstp st(0)
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [esp + 0x44], edx
mov edi, edx
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.004ccd50
mov ecx, dword [ebp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0x30], eax
jl 0x561c67
mov dword [esp + 0x28], 0x80
mov ecx, esi
call fcn.0056c0e0
fild dword [esp + 0x30]
lea edx, [esp + 0x78]
mov esi, eax
push edx
fdiv qword [esp + 0x20]
mov ecx, dword [esi + 0x60]
fchs
fstp qword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push edi
push ebx
call fcn.004b90d0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
lea edx, [esp + 0x78]
push edx
push edi
test eax, eax
push ebx
je 0x561b41
call fcn.004b90d0
mov eax, dword [esp + 0x28]
mov ecx, 0x80
cdq
fld qword [esp + 0x90]
idiv dword [ebp + 0x10]
fmul qword [0x5f0b68]
fadd qword [esp + 0x78]
fld qword [esp + 0x98]
fmul qword [0x5f0b68]
fadd qword [esp + 0x80]
fild dword [ebp + 0x10]
fstp qword [esp + 0x14]
fsub qword [esp + 0x44]
mov edx, dword [esp + 0x10]
fmul qword [esp + 0x1c]
fadd qword [esp + 0x14]
fadd qword [0x5f0b60]
sub ecx, eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push 0x561620
call sub.msvcrt.dll__ftol
fsub qword [esp + 0x44]
push eax
fmul qword [esp + 0x30]
fadd qword [esp + 0x28]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
fld qword [esp + 0x74]
fsub qword [esp + 0x58]
push eax
fmul qword [esp + 0x34]
fadd qword [esp + 0x2c]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
fld qword [esp + 0x70]
fsub qword [esp + 0x4c]
push eax
fmul qword [esp + 0x38]
fadd qword [esp + 0x30]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
push eax
call fcn.00561660
add esp, 0x20
lea ecx, [esp + 0x78]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.004b90d0
fld qword [esp + 0x90]
fmul qword [0x5e2640]
fadd qword [esp + 0x78]
fstp qword [esp + 0x58]
fld qword [esp + 0x98]
fmul qword [0x5e2640]
fadd qword [esp + 0x80]
fstp qword [esp + 0x60]
jmp 0x561c29
call fcn.004b90d0
mov eax, dword [esp + 0x28]
mov ecx, 0x80
cdq
fld qword [esp + 0x90]
idiv dword [ebp + 0x10]
fadd qword [esp + 0x78]
fld qword [esp + 0x98]
fadd qword [esp + 0x80]
fild dword [ebp + 0x10]
fstp qword [esp + 0x14]
fsub qword [esp + 0x44]
mov edx, dword [esp + 0x10]
fmul qword [esp + 0x1c]
fadd qword [esp + 0x14]
fadd qword [0x5f0b60]
sub ecx, eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push 0x561620
call sub.msvcrt.dll__ftol
fsub qword [esp + 0x44]
push eax
fmul qword [esp + 0x30]
fadd qword [esp + 0x28]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
fld qword [esp + 0x74]
fsub qword [esp + 0x58]
push eax
fmul qword [esp + 0x34]
fadd qword [esp + 0x2c]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
fld qword [esp + 0x70]
fsub qword [esp + 0x4c]
push eax
fmul qword [esp + 0x38]
fadd qword [esp + 0x30]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
push eax
call fcn.00561660
add esp, 0x20
lea ecx, [esp + 0x78]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.004b90d0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov ecx, dword [esp + 0x2c]
mov esi, dword [esi + 0x5c]
call fcn.0056c0e0
cmp esi, eax
jne 0x561a2c
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x2c]
inc eax
add edx, 0x80
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
jle 0x5619d8
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x68]
call sub.mfc42u.dll_CDC::CDC
push 0
mov byte [esp + 0xbc], 1
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x6c]
call sub.mfc42u.dll_CDC::Attach
push 0
push 1
push 0
lea ecx, [esp + 0xac]
call sub.mfc42u.dll_CPen::CPen
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x5e4054
mov edi, dword [esp + 0x3c]
push 0
push 1
push 1
push edi
push ebx
mov byte [esp + 0xcc], 3
call dword [sym.imp.gdi32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x54]
call sub.mfc42u.dll_CGdiObject::Attach
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x70]
push eax
call sub.mfc42u.dll_CDC::SelectGdiObject
lea ecx, [esp + 0xa0]
mov dword [esp + 0x28], eax
push ecx
lea ecx, [esp + 0x6c]
call sub.mfc42u.dll_CDC::SelectObject
mov edx, dword [esp + 0x6c]
push 0xff0062
push edi
push ebx
push 0
push 0
push edx
mov dword [esp + 0x48], eax
call dword [sym.imp.gdi32.dll_PatBlt]
mov ecx, esi
call fcn.0056c0e0
fild dword [ebp + 0x10]
mov edi, eax
fstp qword [esp + 0x14]
fld qword [edi + 8]
fsub qword [esp + 0x44]
fmul qword [esp + 0x1c]
fadd qword [esp + 0x14]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
fld qword [edi]
fsub qword [esp + 0x34]
push eax
fmul qword [esp + 0x20]
fadd qword [esp + 0x18]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x74]
call sub.mfc42u.dll_CDC::MoveTo
mov edi, dword [edi + 0x5c]
fld qword [edi + 8]
fsub qword [esp + 0x44]
fmul qword [esp + 0x1c]
fadd qword [esp + 0x14]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
fld qword [edi]
fsub qword [esp + 0x34]
push eax
fmul qword [esp + 0x20]
fadd qword [esp + 0x18]
fadd qword [0x5f0b60]
call sub.msvcrt.dll__ftol
push eax
lea ecx, [esp + 0x70]
call sub.mfc42u.dll_CDC::LineTo
mov ecx, esi
call fcn.0056c0e0
cmp edi, eax
jne 0x561d6b
push 0
lea ecx, [esp + 0xac]
call sub.mfc42u.dll_CBrush::CBrush
lea ecx, [esp + 0xa8]
mov byte [esp + 0xb8], 4
push ecx
lea ecx, [esp + 0x6c]
call sub.mfc42u.dll_CDC::SelectObject_1
mov edx, dword [esp + 0x6c]
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.gdi32.dll_FloodFill]
xor edi, edi
test ebx, ebx
jle 0x561e3e
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x561e39
mov eax, dword [esp + 0x40]
lea ecx, [edi + eax]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x6c]
push esi
push edi
push edx
call dword [sym.imp.gdi32.dll_GetPixel]
test eax, eax
je 0x561e26
mov eax, dword [esp + 0x10]
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
inc esi
add ecx, ebx
cmp esi, eax
mov dword [esp + 0x10], ecx
jl 0x561e0e
inc edi
cmp edi, ebx
jl 0x561df9
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x6c]
call sub.mfc42u.dll_CDC::SelectObject_1
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x68]
push edx
call sub.mfc42u.dll_CDC::SelectObject
mov eax, dword [esp + 0x28]
test eax, eax
je 0x561e65
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x70]
push eax
call sub.mfc42u.dll_CDC::SelectGdiObject
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edi, 0x5e3df4
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [esp + 0xa8], edi
lea ecx, [esp + 0xa8]
mov byte [esp + 0xb8], 5
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov esi, 0x5e262c
mov dword [esp + 0x50], edi
mov dword [esp + 0xa8], esi
lea ecx, [esp + 0x50]
mov byte [esp + 0xb8], 6
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov dword [esp + 0x50], esi
mov dword [esp + 0xa0], edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb8], 7
call sub.mfc42u.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x68]
mov dword [esp + 0xa0], esi
mov byte [esp + 0xb8], 0
call fcn.005c100a
lea ecx, [esp + 0x78]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret