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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x65837b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x6a9fa4]
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 0x6b578c
push 0x6b5b1c
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.00627068
add esp, 0x14
test eax, eax
mov dword [esp + 0x1c], eax
je 0x5a0381
call fcn.005726f0
mov edx, eax
test edx, edx
mov dword [esp + 0x24], edx
je 0x5a082e
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x7c], 0
jle 0x5a00f5
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 [0x6ba058]
mov ecx, dword [eax + 0x320]
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 0x60]
jne 0x5a0132
mov eax, dword [0x6ba058]
call fcn.0055b400
test al, al
je 0x5a0132
mov ecx, dword [0x6ba058]
mov edx, dword [ecx + 0x36c]
mov esi, dword [edx + 0x30]
call fcn.0056ee90
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 0x5a0356
mov eax, dword [ebx + 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 [ebx + 0x1c], 0
je 0x5a0253
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a01b2
mov eax, dword [edi + 4]
jmp 0x5a01b5
lea eax, [edi + 4]
mov edx, dword [ebp + 0x10]
fild dword [ebp + 0xc]
sub edx, dword [ebx + 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 [0x668940]
fadd st(1), st(0)
fxch st(1)
call fcn.00643d70
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
faddp st(1)
call fcn.00643d70
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.gdi32.dll_TextOutW]
cmp byte [ebx + 0x1d], 0
je 0x5a0253
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a0210
mov eax, dword [edi + 4]
jmp 0x5a0213
lea eax, [edi + 4]
push ecx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebx + 4]
push eax
add ecx, 1
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fadd dword [esi + 0xc]
fadd qword [0x668940]
call fcn.00643d70
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
fadd qword [0x688688]
call fcn.00643d70
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.gdi32.dll_TextOutW]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.0056a410
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.0056a400
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.0056a3f0
mov ecx, dword [esp + 0x10]
movzx eax, al
or edx, eax
push edx
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
jb 0x5a0298
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.00643d70
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
call fcn.00643d70
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.gdi32.dll_TextOutW]
cmp byte [ebx + 0x1d], 0
je 0x5a0328
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a02ea
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x5a02ee
mov eax, dword [esp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebx + 4]
add eax, 1
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fadd dword [esi + 0xc]
call fcn.00643d70
fld dword [esp + 0x20]
fadd dword [esi + 8]
push eax
fadd qword [0x668940]
call fcn.00643d70
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.gdi32.dll_TextOutW]
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.00572530
mov ecx, esi
jmp 0x5a035a
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x7c], 0
jle 0x5a082e
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 0x5a082e
cmp dword [esi + 4], 0x732984
je 0x5a082e
push 0
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0x14]
mov esi, eax
push ecx
push esi
call dword [sym.imp.gdi32.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.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 [ebx + 0x1c], 0
je 0x5a04de
push 0
push esi
call dword [sym.imp.gdi32.dll_SetTextColor]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a04aa
mov eax, dword [edi + 4]
jmp 0x5a04ad
lea eax, [edi + 4]
push ecx
push eax
push 1
push 1
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
cmp byte [ebx + 0x1d], 0
je 0x5a04de
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a04ce
mov eax, dword [edi + 4]
jmp 0x5a04d1
lea eax, [edi + 4]
push ecx
push eax
push 1
push 2
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.0056a410
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.0056a400
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.0056a3f0
movzx eax, al
or edx, eax
push edx
push esi
call dword [sym.imp.gdi32.dll_SetTextColor]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
jb 0x5a051f
mov eax, dword [eax]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
cmp byte [ebx + 0x1d], 0
je 0x5a0554
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a0543
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x5a0547
mov eax, dword [esp + 0x14]
push ecx
push eax
push 0
push 1
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
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 [ebx + 0x1c], 0
je 0x5a05e1
push 0
push esi
call dword [sym.imp.gdi32.dll_SetTextColor]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x14]
jb 0x5a05ac
mov eax, dword [eax]
push ecx
push eax
push 1
push 1
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
cmp byte [ebx + 0x1d], 0
je 0x5a05e1
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a05d0
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x5a05d4
mov eax, dword [esp + 0x14]
push ecx
push eax
push 1
push 2
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
mov ecx, dword [esp + 0x28]
mov eax, ecx
call fcn.0056a410
xor edx, edx
mov dh, al
mov eax, ecx
call fcn.0056a400
mov dl, al
mov eax, ecx
shl edx, 8
call fcn.0056a3f0
movzx eax, al
or edx, eax
push edx
push esi
call dword [sym.imp.gdi32.dll_SetTextColor]
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
jb 0x5a0621
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x5a0625
mov eax, dword [esp + 0x14]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
cmp byte [ebx + 0x1d], 0
je 0x5a0654
cmp dword [edi + 0x18], 8
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x14]
jb 0x5a0647
mov eax, dword [eax]
push ecx
push eax
push 0
push 1
push esi
call dword [sym.imp.gdi32.dll_TextOutW]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.gdi32.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.00596240
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.00599030
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 0x5a07c7
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [eax]
cmp edx, eax
jne 0x5a06d9
or edx, 0xff000000
mov dword [edi], edx
jmp 0x5a07a4
mov ecx, edx
and ecx, 0xffffff
cmp ecx, 0xffffff
jne 0x5a06f8
test ecx, eax
jne 0x5a06f8
mov dword [edi], 0
jmp 0x5a07a4
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 0x5a0775
mov edx, ecx
mov edi, dword [esp + 0x28]
cmp edi, edx
jge 0x5a0781
mov ecx, edi
jmp 0x5a0787
cmp ebx, ecx
jge 0x5a0787
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 0x5a06c0
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.00599070
push eax
call fcn.0062bd80
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.0058d120
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.gdi32.dll_DeleteObject]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
mov ecx, ebx
mov dword [esp + 0x100], 0xffffffff
call fcn.00596580
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.00626d59
mov esp, ebp
pop ebp
ret 0x18