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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff3c
mov ebp, edx
mov ebx, eax
mov eax, ebx
call fcn.005f5608
mov esi, dword [ebx + 0x334]
mov edi, dword [ebx + 0x330]
lea eax, [ebx + 0x320]
call fcn.005fa83c
sub eax, dword [ebx + 0x338]
mov dword [esp], eax
lea eax, [ebx + 0x320]
call fcn.005fa858
sub eax, dword [ebx + 0x33c]
mov dword [esp + 4], eax
lea edx, [esp + 0x74]
mov eax, ebx
call fcn.0043ef2c
mov eax, dword [esp + 0x80]
add eax, dword [esp + 4]
push eax
lea eax, [esp + 0x88]
push eax
mov ecx, dword [esp + 0x84]
add ecx, dword [esp + 8]
mov edx, dword [esp + 0x80]
sub edx, esi
mov eax, dword [esp + 0x7c]
sub eax, edi
call fcn.0041c1a4
lea eax, [esp + 0x84]
call fcn.005fa83c
mov esi, eax
lea eax, [ebx + 0x320]
call fcn.005fa83c
sub esi, eax
lea eax, [esp + 0x84]
call fcn.005fa858
mov edi, eax
lea eax, [ebx + 0x320]
call fcn.005fa858
sub edi, eax
mov eax, dword [ebx + 0x390]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x394]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x30]
mov eax, dword [ebx + 0x398]
add eax, esi
mov edx, dword [ebx + 0x39c]
call fcn.0041c17c
lea ecx, [esp + 0x38]
mov edx, dword [ebx + 0x3a4]
add edx, edi
mov eax, dword [ebx + 0x3a0]
call fcn.0041c17c
lea ecx, [esp + 0x40]
mov edx, dword [ebx + 0x3ac]
add edx, edi
mov eax, dword [ebx + 0x3a8]
add eax, esi
call fcn.0041c17c
add edi, dword [ebx + 0x33c]
push edi
lea eax, [esp + 0x68]
push eax
mov ecx, dword [ebx + 0x338]
add ecx, esi
mov edx, dword [ebx + 0x334]
mov eax, dword [ebx + 0x330]
call fcn.0041c1a4
mov esi, dword [ebx + 0x3d8]
cmp esi, 0xffffffff
je 0x5f600e
mov eax, dword [ebx + 0x2c8]
mov eax, dword [eax + 0xb0]
mov edx, esi
call fcn.0041d84c
mov dword [esp + 0x48], eax
cmp byte [ebx + 0x3e8], 0
je 0x5f5f72
cmp dword [ebx + 0x48], 0
jle 0x5f5f72
cmp dword [ebx + 0x4c], 0
jle 0x5f5f72
mov al, byte [ebx + 0x3ed]
sub al, 1
jb 0x5f5dda
je 0x5f5ebb
dec al
je 0x5f5e09
jmp 0x5f6563
mov eax, dword [ebx + 0x4c]
push eax
lea eax, [esp + 0xa8]
push eax
mov ecx, dword [ebx + 0x48]
xor edx, edx
xor eax, eax
call fcn.0041c1a4
lea edx, [esp + 0xa4]
mov ecx, dword [esp + 0x48]
mov eax, ebp
call fcn.0042ab24
jmp 0x5f6563
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov esi, eax
mov edx, dword [ebx + 0x48]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0xa8]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041c1a4
lea eax, [esp + 0xa4]
push eax
mov eax, esi
call fcn.0042f990
mov ecx, dword [esp + 0x4c]
pop edx
call fcn.0042ab24
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x4c]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x5f5eaf
inc eax
mov dword [esp + 0x60], eax
xor edi, edi
push esi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, eax
imul ecx, edi
xor edx, edx
mov eax, ebp
call fcn.0042a7f0
inc edi
dec dword [esp + 0x60]
jne 0x5f5e92
mov eax, esi
call fcn.004036d8
jmp 0x5f6563
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov esi, eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebx + 0x4c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0xa8]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041c1a4
lea eax, [esp + 0xa4]
push eax
mov eax, esi
call fcn.0042f990
mov ecx, dword [esp + 0x4c]
pop edx
call fcn.0042ab24
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x48]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
test edi, edi
jl 0x5f5f66
inc edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x10], 0
push esi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
imul edx, dword [esp + 0x14]
xor ecx, ecx
mov eax, ebp
call fcn.0042a7f0
inc dword [esp + 0x10]
dec dword [esp + 0x60]
jne 0x5f5f44
mov eax, esi
call fcn.004036d8
jmp 0x5f6563
cmp dword [ebx + 0x48], 0
jle 0x5f6563
cmp dword [ebx + 0x4c], 0
jle 0x5f6563
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x48]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x4c]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x5f6563
inc edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x14]
test esi, esi
jl 0x5f5fff
inc esi
xor edi, edi
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
imul edi
push eax
mov eax, dword [esp + 0x50]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
imul edx, dword [esp + 0x18]
mov eax, ebp
pop ecx
call fcn.0042a7f0
inc edi
dec esi
jne 0x5f5fd2
inc dword [esp + 0x10]
dec dword [esp + 0x60]
jne 0x5f5fc7
jmp 0x5f6563
lea eax, [ebx + 0x330]
call fcn.005fa83c
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x330]
call fcn.005fa858
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
mov eax, ecx
cdq
idiv dword [esp + 0x18]
mov edi, eax
mov eax, esi
cdq
idiv dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 0x324]
add eax, dword [ebx + 0x33c]
push eax
lea eax, [esp + 0xa8]
push eax
mov esi, dword [ebx + 0x320]
mov ecx, esi
add ecx, dword [ebx + 0x338]
mov edx, dword [ebx + 0x324]
add edx, dword [ebx + 0x334]
mov eax, esi
add eax, dword [ebx + 0x330]
call fcn.0041c1a4
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0xbc]
push eax
mov ecx, dword [esp + 0x24]
xor edx, edx
xor eax, eax
call fcn.0041c1a4
lea eax, [esp + 0xb8]
push eax
mov eax, dword [ebx + 0x31c]
call fcn.0042f990
push eax
mov eax, dword [esp + 0x60]
call fcn.0042f990
pop ecx
pop edx
call fcn.0042a768
mov eax, ebp
call fcn.0042ae9c
push eax
call sub.gdi32.dll_SaveDC
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, ebp
call fcn.0042ae9c
push eax
call sub.gdi32.dll_IntersectClipRect
cmp byte [ebx + 0x3e8], 0
je 0x5f62ff
cmp dword [ebx + 0x48], 0
jle 0x5f62ff
cmp dword [ebx + 0x4c], 0
jle 0x5f62ff
mov al, byte [ebx + 0x3ed]
sub al, 1
jb 0x5f616a
je 0x5f624b
dec al
je 0x5f6199
jmp 0x5f6345
mov eax, dword [ebx + 0x4c]
push eax
lea eax, [esp + 0xa8]
push eax
mov ecx, dword [ebx + 0x48]
xor edx, edx
xor eax, eax
call fcn.0041c1a4
lea edx, [esp + 0xa4]
mov ecx, dword [esp + 0x54]
mov eax, ebp
call fcn.0042ab24
jmp 0x5f6345
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov esi, eax
mov edx, dword [ebx + 0x48]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0xa8]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041c1a4
lea eax, [esp + 0xa4]
push eax
mov eax, esi
call fcn.0042f990
mov ecx, dword [esp + 0x58]
pop edx
call fcn.0042ab24
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x4c]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x5f623f
inc eax
mov dword [esp + 0x60], eax
xor edi, edi
push esi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, eax
imul ecx, edi
xor edx, edx
mov eax, ebp
call fcn.0042a7f0
inc edi
dec dword [esp + 0x60]
jne 0x5f6222
mov eax, esi
call fcn.004036d8
jmp 0x5f6345
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov esi, eax
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebx + 0x4c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0xa8]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041c1a4
lea eax, [esp + 0xa4]
push eax
mov eax, esi
call fcn.0042f990
mov ecx, dword [esp + 0x58]
pop edx
call fcn.0042ab24
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x48]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
test edi, edi
jl 0x5f62f6
inc edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x10], 0
push esi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
imul edx, dword [esp + 0x14]
xor ecx, ecx
mov eax, ebp
call fcn.0042a7f0
inc dword [esp + 0x10]
dec dword [esp + 0x60]
jne 0x5f62d4
mov eax, esi
call fcn.004036d8
jmp 0x5f6345
test edi, edi
jl 0x5f6345
inc edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x14]
test esi, esi
jl 0x5f633b
inc esi
xor edi, edi
mov eax, dword [esp + 0x54]
push eax
mov ecx, edi
imul ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
imul edx, dword [esp + 0x1c]
mov eax, ebp
call fcn.0042a7f0
inc edi
dec esi
jne 0x5f631b
inc dword [esp + 0x10]
dec dword [esp + 0x60]
jne 0x5f6310
mov eax, dword [esp + 0x5c]
push eax
mov eax, ebp
call fcn.0042ae9c
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [esp + 0x54]
call fcn.004036d8
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov dword [esp + 0x4c], eax
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov esi, eax
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov edi, eax
mov dl, 1
mov eax, dword [0x428ac0]
call fcn.0042f3c8
mov dword [esp + 0x50], eax
lea eax, [ebx + 0x3a8]
push eax
lea eax, [ebx + 0x330]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x68]
push eax
push esi
push edi
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [ebx + 0x31c]
push eax
lea eax, [ebx + 0x320]
push eax
lea eax, [esp + 0xb8]
call fcn.005fa83c
push eax
lea eax, [esp + 0xbc]
call fcn.005fa858
push eax
mov al, byte [ebx + 0x3e9]
push eax
mov al, byte [ebx + 0x3ea]
push eax
mov al, byte [ebx + 0x3eb]
push eax
mov al, byte [ebx + 0x3ec]
push eax
lea ecx, [ebx + 0x3a0]
lea edx, [ebx + 0x398]
lea eax, [ebx + 0x390]
call fcn.005fea90
mov dword [esp + 0x5c], 0xffffffff
lea edx, [esp + 0x94]
mov eax, ebx
call fcn.005f3c68
lea eax, [esp + 0x94]
call fcn.005fa6cc
test al, al
jne 0x5f648e
mov eax, ebp
call fcn.0042ae9c
push eax
call sub.gdi32.dll_SaveDC
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push eax
mov eax, ebp
call fcn.0042ae9c
push eax
call sub.gdi32.dll_ExcludeClipRect
push esi
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
mov edx, ebx
mov eax, ebp
call fcn.0042a7f0
mov eax, dword [esp + 0x4c]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, eax
add ecx, dword [esp + 0x8c]
mov edx, ebx
mov eax, ebp
call fcn.0042a7f0
push edi
lea eax, [esp + 0x88]
call fcn.005fa83c
add eax, dword [esp + 0x88]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
sub edx, eax
push edx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, eax
add ecx, dword [esp + 0x90]
mov eax, ebp
pop edx
call fcn.0042a7f0
mov eax, dword [esp + 0x50]
push eax
lea eax, [esp + 0x88]
call fcn.005fa858
add eax, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
pop ecx
sub ecx, eax
mov edx, ebx
mov eax, ebp
call fcn.0042a7f0
cmp dword [esp + 0x5c], 0xffffffff
je 0x5f6543
mov eax, dword [esp + 0x5c]
push eax
mov eax, ebp
call fcn.0042ae9c
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [esp + 0x4c]
call fcn.004036d8
mov eax, esi
call fcn.004036d8
mov eax, edi
call fcn.004036d8
mov eax, dword [esp + 0x50]
call fcn.004036d8
add esp, 0xc4
pop ebp
pop edi
pop esi
pop ebx
ret