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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64d48b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [esi + 4]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push 0
push 0x6a5680
push 0x6a5a0c
mov ebx, ecx
mov ecx, dword [ebp + 0x1c]
push 0
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
call fcn.0061eefc
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], eax
je 0x59a201
call fcn.0056c720
mov edx, eax
test edx, edx
mov dword [esp + 0x24], edx
je 0x59a6ae
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x7c], 0
jle 0x599f75
mov eax, dword [eax + 0x70]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x80]
push 0
push eax
call edx
mov edx, dword [esp + 0x24]
mov eax, dword [0x6a9f38]
mov ecx, dword [eax + 0x320]
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 0x60]
jne 0x599fb2
mov eax, dword [0x6a9f38]
call fcn.00554f90
test al, al
je 0x599fb2
mov ecx, dword [0x6a9f38]
mov edx, dword [ecx + 0x36c]
mov esi, dword [edx + 0x30]
call fcn.00568ec0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
lea ecx, [esp + 0x10]
push ecx
push edx
mov edx, dword [eax + 0x44]
call edx
test eax, eax
jne 0x59a1d6
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI42.dll_SelectObject]
mov edx, dword [esp + 0x10]
push 1
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI42.dll_SetBkMode]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov edx, dword [edx + 0xc]
add edx, eax
push edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 8]
add edx, ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.GDI42.dll_IntersectClipRect]
cmp byte [ebx + 0x1c], 0
jmp 0x59a0d3
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.005cc2b0
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.00564440
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.00564430
mov ecx, dword [esp + 0x10]
movzx eax, al
or edx, eax
push edx
push ecx
call dword [sym.imp.GDI42.dll_SetTextColor]
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
jb 0x59a118
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
fild dword [ebp + 0xc]
sub edx, dword [ebx + 4]
push ecx
add edx, 1
fstp dword [esp + 0x1c]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
push eax
fadd dword [esi + 0xc]
call fcn.006397d0
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
call fcn.006397d0
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI42.dll_TextOutA]
cmp byte [ebx + 0x1d], 0
jmp 0x59a1a8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI42.dll_SelectObject]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
mov esi, dword [esp + 0x1c]
call fcn.0056c560
mov ecx, esi
jmp 0x59a1da
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x7c], 0
jle 0x59a6ae
mov eax, dword [ecx + 0x70]
mov edx, dword [eax]
push 0
push 1
add ecx, 0x80
push ecx
push 0
push eax
mov eax, dword [edx + 0x64]
call eax
jmp 0x59a6ae
cmp dword [esi + 4], 0x722864
je 0x59a6ae
push 0
call dword [sym.imp.GDI42.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0x14]
mov esi, eax
push ecx
push esi
call dword [sym.imp.GDI42.dll_SelectObject]
mov edx, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x1c]
push edi
mov ecx, ebx
call eax
mov edx, dword [ebx + 0xc]
mov ecx, eax
xor eax, eax
push eax
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x50], ecx
neg edx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x58], edx
push eax
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
push esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov word [esp + 0x68], 1
mov dword [esp + 0x6c], eax
mov word [esp + 0x6a], 0x20
mov dword [esp + 0x5c], 0x28
call dword [sym.imp.GDI42.dll_CreateDIBSection]
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
push eax
push 0
lea ecx, [esp + 0x54]
push ecx
push esi
call dword [sym.imp.GDI42.dll_CreateDIBSection]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
call dword [sym.imp.GDI42.dll_SelectObject]
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI42.dll_GetStockObject]
push eax
lea edx, [esp + 0x70]
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
push 1
push esi
call dword [sym.imp.GDI42.dll_SetBkMode]
cmp byte [ebx + 0x1c], 0
je 0x59a35e
push 0
push esi
call dword [sym.imp.GDI42.dll_SetTextColor]
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x59a32a
mov eax, dword [edi + 4]
jmp 0x59a32d
lea eax, [edi + 4]
push ecx
push eax
push 1
push 1
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
cmp byte [ebx + 0x1d], 0
je 0x59a35e
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x59a34e
mov eax, dword [edi + 4]
jmp 0x59a351
lea eax, [edi + 4]
push ecx
push eax
push 1
push 2
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.005cc2b0
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.00564440
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.00564430
movzx eax, al
or edx, eax
push edx
push esi
call dword [sym.imp.GDI42.dll_SetTextColor]
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
jb 0x59a39f
mov eax, dword [eax]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
cmp byte [ebx + 0x1d], 0
je 0x59a3d4
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x59a3c3
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x59a3c7
mov eax, dword [esp + 0x14]
push ecx
push eax
push 0
push 1
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI42.dll_SelectObject]
mov ecx, dword [esp + 0x20]
push ecx
push esi
call dword [sym.imp.GDI42.dll_SelectObject]
push 4
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI42.dll_GetStockObject]
push eax
lea edx, [esp + 0x70]
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
push 1
push esi
call dword [sym.imp.GDI42.dll_SetBkMode]
cmp byte [ebx + 0x1c], 0
je 0x59a461
push 0
push esi
call dword [sym.imp.GDI42.dll_SetTextColor]
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x14]
jb 0x59a42c
mov eax, dword [eax]
push ecx
push eax
push 1
push 1
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
cmp byte [ebx + 0x1d], 0
je 0x59a461
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x59a450
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x59a454
mov eax, dword [esp + 0x14]
push ecx
push eax
push 1
push 2
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.005cc2b0
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.00564440
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.00564430
movzx eax, al
or edx, eax
push edx
push esi
call dword [sym.imp.GDI42.dll_SetTextColor]
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
jb 0x59a4a1
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x59a4a5
mov eax, dword [esp + 0x14]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
cmp byte [ebx + 0x1d], 0
je 0x59a4d4
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x14]
jb 0x59a4c7
mov eax, dword [eax]
push ecx
push eax
push 0
push 1
push esi
call dword [sym.imp.GDI42.dll_TextOutA]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI42.dll_SelectObject]
push ecx
push esi
call edi
mov edx, dword [esp + 0x30]
push edx
push esi
call edi
lea eax, [esp + 0x7c]
push eax
call fcn.005900f0
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push ecx
push edi
lea ecx, [esp + 0x84]
mov dword [esp + 0x108], 0
call fcn.00592ee0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
imul eax, edi
test eax, eax
mov edi, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edx
jle 0x59a647
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [eax]
cmp edx, eax
jne 0x59a559
or edx, 0xff000000
mov dword [edi], edx
jmp 0x59a624
mov ecx, edx
and ecx, 0xffffff
cmp ecx, 0xffffff
jne 0x59a578
test ecx, eax
jne 0x59a578
mov dword [edi], 0
jmp 0x59a624
and edx, 0xff
and eax, 0xff
mov ecx, eax
imul eax, eax, 0xff
sub ecx, edx
mov edx, dword [esp + 0x10]
movzx ebx, byte [edx + 1]
movzx edx, byte [edi + 1]
movzx edi, byte [edi + 2]
sub ebx, edx
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + 2]
sub edx, edi
add edx, 0xff
mov dword [esp + 0x28], edx
xor edx, edx
add ecx, 0xff
div ecx
mov edi, dword [esp + 0x10]
xor edx, edx
add ebx, 0xff
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 1]
imul eax, eax, 0xff
div ebx
xor edx, edx
mov dword [esp + 0x30], eax
movzx eax, byte [edi + 2]
imul eax, eax, 0xff
div dword [esp + 0x28]
cmp ebx, ecx
mov edx, ebx
jl 0x59a5f5
mov edx, ecx
mov edi, dword [esp + 0x28]
cmp edi, edx
jge 0x59a601
mov ecx, edi
jmp 0x59a607
cmp ebx, ecx
jge 0x59a607
mov ecx, ebx
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, dword [esp + 0x30]
shl ecx, 8
or ecx, dword [esp + 0x14]
mov dword [edi], ecx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], 4
sub eax, 1
add edi, 4
test eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
jg 0x59a540
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add eax, eax
add eax, eax
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.00592f20
push eax
call fcn.00624510
mov edx, dword [ebp + 0x10]
sub edx, dword [ebx + 4]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push edx
push eax
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x84]
call fcn.00587150
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI42.dll_DeleteObject]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
push esi
call dword [sym.imp.GDI42.dll_DeleteDC]
mov ecx, ebx
mov dword [esp + 0x100], 0xffffffff
call fcn.00590430
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0061efd1
mov esp, ebp
pop ebp
ret 0x20