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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x65830b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
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 ebx, dword [ebp + 0x14]
push 0
push 0x6b7148
push 0x6b712c
mov edi, ecx
mov ecx, dword [ebp + 0x1c]
push 0
push edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ecx
call fcn.006254cb
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], eax
je 0x539771
call fcn.0050ade0
mov edx, eax
test edx, edx
mov dword [esp + 0x24], edx
je 0x539c21
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x7c], 0
jle 0x5394e5
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 [0x6b9d90]
mov ecx, dword [eax + 0x320]
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 0x60]
jne 0x539522
mov eax, dword [0x6b9d90]
call fcn.00550ef0
test al, al
je 0x539522
mov ecx, dword [0x6b9d90]
mov edx, dword [ecx + 0x36c]
mov esi, dword [edx + 0x30]
call fcn.005075f0
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 0x539746
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
push 1
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.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.GDI32.dll_IntersectClipRect]
cmp byte [edi + 0x1c], 0
je 0x539643
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x5395a2
mov eax, dword [ebx + 4]
jmp 0x5395a5
lea eax, [ebx + 4]
mov edx, dword [ebp + 0x10]
fild dword [ebp + 0xc]
sub edx, dword [edi + 4]
push ecx
fstp dword [esp + 0x1c]
add edx, 1
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
push eax
fadd dword [esi + 0xc]
fld qword [0x665830]
fadd st(1), st(0)
fxch st(1)
call fcn.0062a660
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
faddp st(1)
call fcn.0062a660
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
cmp byte [edi + 0x1d], 0
je 0x539643
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x539600
mov eax, dword [ebx + 4]
jmp 0x539603
lea eax, [ebx + 4]
push ecx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [edi + 4]
push eax
add ecx, 1
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fadd dword [esi + 0xc]
fadd qword [0x665830]
call fcn.0062a660
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
fadd qword [0x686dc0]
call fcn.0062a660
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.005d3790
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.00502a90
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.00502a80
mov ecx, dword [esp + 0x10]
movzx eax, al
or edx, eax
push edx
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
jb 0x539688
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
fild dword [ebp + 0xc]
sub edx, dword [edi + 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.0062a660
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
call fcn.0062a660
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
cmp byte [edi + 0x1d], 0
je 0x539718
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x5396da
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x5396de
mov eax, dword [esp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0x10]
sub eax, dword [edi + 4]
add eax, 1
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fadd dword [esi + 0xc]
call fcn.0062a660
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
fadd qword [0x665830]
call fcn.0062a660
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.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.0050ac20
mov ecx, esi
jmp 0x53974a
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x7c], 0
jle 0x539c21
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 0x539c21
cmp dword [esi + 4], 0x6bac00
je 0x539c21
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [edi + 0x14]
mov esi, eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x1c]
push ebx
mov ecx, edi
call eax
mov edx, dword [edi + 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.GDI32.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.GDI32.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.GDI32.dll_SelectObject]
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.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.GDI32.dll_SetBkMode]
cmp byte [edi + 0x1c], 0
je 0x5398ce
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x53989a
mov eax, dword [ebx + 4]
jmp 0x53989d
lea eax, [ebx + 4]
push ecx
push eax
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
cmp byte [edi + 0x1d], 0
je 0x5398ce
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x5398be
mov eax, dword [ebx + 4]
jmp 0x5398c1
lea eax, [ebx + 4]
push ecx
push eax
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.005d3790
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.00502a90
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.00502a80
movzx eax, al
or edx, eax
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
jb 0x53990f
mov eax, dword [eax]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
cmp byte [edi + 0x1d], 0
je 0x539944
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x539933
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x539937
mov eax, dword [esp + 0x14]
push ecx
push eax
push 0
push 1
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.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.GDI32.dll_SetBkMode]
cmp byte [edi + 0x1c], 0
je 0x5399d1
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
jb 0x53999c
mov eax, dword [eax]
push ecx
push eax
push 1
push 1
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
cmp byte [edi + 0x1d], 0
je 0x5399d1
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x5399c0
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x5399c4
mov eax, dword [esp + 0x14]
push ecx
push eax
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.005d3790
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.00502a90
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.00502a80
movzx eax, al
or edx, eax
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x539a11
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x539a15
mov eax, dword [esp + 0x14]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
cmp byte [edi + 0x1d], 0
je 0x539a44
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
jb 0x539a37
mov eax, dword [eax]
push ecx
push eax
push 0
push 1
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x30]
push edx
push esi
call ebx
lea ecx, [esp + 0x7c]
call fcn.0052f650
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x84]
mov dword [esp + 0x108], 0
call fcn.00532450
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
imul eax, ebx
test eax, eax
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ecx
jle 0x539bb7
jmp 0x539ab0
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [eax]
cmp edx, eax
jne 0x539ac9
or edx, 0xff000000
mov dword [ebx], edx
jmp 0x539b94
mov ecx, edx
and ecx, 0xffffff
cmp ecx, 0xffffff
jne 0x539ae8
test ecx, eax
jne 0x539ae8
mov dword [ebx], 0
jmp 0x539b94
and edx, 0xff
and eax, 0xff
mov ecx, eax
imul eax, eax, 0xff
sub ecx, edx
mov edx, dword [esp + 0x10]
movzx edi, byte [edx + 1]
movzx edx, byte [ebx + 1]
movzx ebx, byte [ebx + 2]
sub edi, edx
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + 2]
sub edx, ebx
add edx, 0xff
mov dword [esp + 0x28], edx
xor edx, edx
add ecx, 0xff
div ecx
mov ebx, dword [esp + 0x10]
xor edx, edx
add edi, 0xff
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 1]
imul eax, eax, 0xff
div edi
xor edx, edx
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 2]
imul eax, eax, 0xff
div dword [esp + 0x28]
cmp edi, ecx
mov edx, edi
jl 0x539b65
mov edx, ecx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jge 0x539b71
mov ecx, ebx
jmp 0x539b77
cmp edi, ecx
jge 0x539b77
mov ecx, edi
mov ebx, dword [esp + 0x24]
mov edi, 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 [ebx], ecx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], 4
sub eax, 1
add ebx, 4
test eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
jg 0x539ab0
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.00532490
push eax
call fcn.0062a790
mov edx, dword [ebp + 0x10]
sub edx, dword [edi + 4]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00525c50
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call edi
mov eax, dword [esp + 0x20]
push eax
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x100], 0xffffffff
call fcn.0052f9a0
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.00624940
mov esp, ebp
pop ebp
ret 0x18