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

Disassembly:
sub esp, 0x74
mov eax, dword [0xa5b184]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
je 0x5f607f
lea ecx, [esp + 0x10]
call dword [0xa5b198]
mov ecx, dword [0xa5b18c]
mov edx, 1
shl edx, cl
dec edx
and edx, eax
mov eax, dword [0xa5b180]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x5f607f
cmp dword [eax], edx
je 0x5f6078
mov eax, dword [eax + 0x204]
test eax, eax
jne 0x5f6068
jmp 0x5f607f
test eax, eax
je 0x5f607f
lea edi, [eax + 4]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x24]
mov ecx, dword [esp + 0x10]
call fcn.0072a0f0
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x5f62ff
push 0x20
call fcn.0076d5a7
mov esi, eax
xor edx, edx
add esp, 4
cmp esi, edx
je 0x5f60ee
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc eax
inc ecx
mov dword [esi + 8], eax
imul eax, ecx
shl eax, 1
mov dword [esi + 4], ecx
push eax
push edx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], edx
mov dword [esi], vtable.XSurface.0
mov dword [esi + 0x10], 2
call fcn.00438140
mov dword [esi], vtable.BSurface.0
xor edx, edx
jmp 0x5f60f0
xor esi, esi
mov dword [edi + 0x10], esi
mov edi, dword [0xa5df0c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x4c]
inc edi
inc edx
inc eax
push ecx
mov dword [0xa5df0c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [0xa5b184]
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x5f6174
lea ecx, [esp + 0x14]
call dword [0xa5b198]
mov ecx, dword [0xa5b18c]
mov edx, 1
shl edx, cl
dec edx
and edx, eax
mov eax, dword [0xa5b180]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x5f6174
cmp dword [edx], eax
je 0x5f616d
mov edx, dword [edx + 0x204]
test edx, edx
jne 0x5f615d
jmp 0x5f6174
test edx, edx
je 0x5f6174
lea ebp, [edx + 4]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x5f61cf
lea edx, [esp + 0x74]
mov ecx, eax
call fcn.0072a0f0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov ecx, eax
sub ecx, edx
push 1
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
mov edx, ecx
push 0
sub edx, ebp
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x34]
sub edx, eax
mov eax, dword [esp + 0x38]
sub eax, ecx
inc edx
inc eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x68], edx
mov edx, dword [esi]
push edi
push ecx
jmp 0x5f620f
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [0x821c70]
mov dword [esp + 0x54], ecx
sub edi, ecx
mov ecx, dword [esp + 0x30]
inc edi
sub ecx, edx
mov dword [esp + 0x58], edx
inc ecx
mov dword [esp + 0x5c], edi
test eax, eax
mov dword [esp + 0x60], ecx
je 0x5f6214
mov edx, dword [esi]
push 1
lea ecx, [esp + 0x58]
push 0
push ecx
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, dword [esi]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edi, eax
test edi, edi
je 0x5f62ff
mov eax, dword [esi]
mov ecx, esi
xor ebx, ebx
call dword [eax + 0x80]
mov edx, dword [esi]
mov ecx, esi
mov ebp, eax
call dword [edx + 0x7c]
imul ebp, eax
test ebp, ebp
jle 0x5f62f4
mov edx, dword [esp + 0x88]
mov ecx, 0xff
and edx, 0xff
sub ecx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
jmp 0x5f6271
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ax, word [edi]
mov dword [0xb10c94], edx
mov dx, word [0xa5df12]
xor ebp, ebp
and eax, 0xffff
mov bp, dx
and ebp, eax
mov dword [0xb10c98], ecx
imul ebp, ecx
shr ebp, 8
and bp, dx
mov edx, dword [0xa5df10]
and edx, 0xffff
add edi, 2
and edx, eax
imul edx, ecx
shr edx, 8
and edx, dword [0xa5df10]
or ebp, edx
mov edx, dword [0xa5df14]
and edx, 0xffff
and edx, eax
imul edx, ecx
shr edx, 8
or ebp, edx
mov ecx, esi
mov word [edi - 2], bp
mov eax, dword [esi]
inc ebx
call dword [eax + 0x80]
mov edx, dword [esi]
mov ecx, esi
mov ebp, eax
call dword [edx + 0x7c]
imul ebp, eax
cmp ebx, ebp
jl 0x5f6269
mov eax, dword [esi]
mov ebx, dword [esp + 0x18]
mov ecx, esi
call dword [eax + 0x60]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x24]
sub ecx, ebp
sub eax, edx
mov dword [esp + 0x68], ecx
mov ecx, dword [0x821c78]
push 1
lea edx, [esp + 0x68]
push 0
mov dword [esp + 0x6c], eax
mov eax, dword [ecx]
push edx
push esi
push ebx
call dword [eax + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4