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

Disassembly:
sub esp, 0xb8
push ebx
mov ebx, dword [esp + 0xcc]
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [esp + 0xd0]
lea eax, [ebp + 5]
lea ecx, [esi + ebp]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
lea edx, [edi + ebx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edx
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
push dword [eax + 0x84]
mov dword [esp + 0x38], edx
push 0x5d9ce6
push dword [eax + 0x78]
add eax, 0x170
push ebx
push eax
call fcn.005873e1
test eax, eax
je 0x5e83e7
push eax
lea eax, [esi - 5]
push eax
push ebx
push dword [esp + 0x34]
mov ebx, dword [esp + 0xdc]
mov ecx, ebx
push edi
call fcn.0058f545
mov esi, dword [sym.imp.USER32.dll_DrawEdge]
lea eax, [esp + 0x24]
push 0xf
push 2
push eax
push dword [ebx]
call esi
mov ebx, dword [esp + 0x10]
push 0x2007
push 2
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x94]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0xd8]
push dword [eax]
call esi
mov esi, dword [esp + 0x1c]
mov ecx, 0x3e8
mov eax, esi
mov dword [esp + 0x40], ecx
sub eax, dword [esp + 0x14]
xor edx, edx
imul eax, dword [esp + 0x38]
push 0xff5050
div ecx
mov ecx, dword [esp + 0xd0]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
call fcn.0058f212
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0xfff0f0
push eax
mov dword [esp + 0x24], esi
call fcn.0058f212
mov esi, dword [ebx + 0x30]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
cmp dword [esi + 0x14], ecx
jbe 0x5e8389
push ecx
lea ecx, [esi + 4]
call fcn.004f47a5
mov ebx, eax
mov edx, dword [ebx]
test edx, edx
je 0x5e81f7
mov eax, dword [esp + 0x34]
lea ecx, [ebp + 6]
mov dword [esp + 0x50], eax
imul eax, edx, 0x3e8
xor edx, edx
mov dword [esp + 0x4c], ecx
lea ecx, [ebp + 9]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], edi
push 0x50ff50
div dword [esi + 0x78]
xor edx, edx
mov ecx, eax
imul eax, dword [ebx + 4], 0x3e8
div dword [esi + 0x78]
mov esi, dword [esp + 0xdc]
xor edx, edx
imul eax, esi
imul ecx, esi
div dword [esp + 0x44]
xor edx, edx
add eax, edi
mov dword [esp + 0x4c], eax
mov eax, ecx
mov ecx, 0x3e8
div ecx
mov ecx, dword [esp + 0xd0]
add eax, edi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
call fcn.0058f212
jmp 0x5e81fe
mov esi, dword [esp + 0xd8]
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x5e8268
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 6]
mov dword [esp + 0x7c], eax
lea eax, [edi + esi]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx + 0x30]
dec eax
mov dword [esp + 0x84], eax
imul eax, edx, 0x3e8
xor edx, edx
mov dword [esp + 0x78], edi
push 0xe070e0
div dword [ecx + 0x78]
xor edx, edx
mov ecx, 0x3e8
imul eax, esi
div ecx
mov ecx, dword [esp + 0xd0]
add eax, edi
mov dword [esp + 0x7c], eax
inc eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x7c]
push eax
call fcn.0058f212
mov edx, dword [ebx + 8]
test edx, edx
je 0x5e82ec
lea eax, [ebp + 6]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], eax
lea eax, [edi + esi]
mov dword [esp + 0x60], eax
lea eax, [ebp + 9]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
push 0x70ffff
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x78]
imul eax, edx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
mov esi, eax
imul eax, dword [ebx], 0x3e8
imul esi, dword [esp + 0xdc]
div ecx
xor edx, edx
mov ecx, 0x3e8
inc eax
imul eax, dword [esp + 0xdc]
div dword [esp + 0x44]
xor edx, edx
add eax, edi
mov dword [esp + 0x5c], eax
mov eax, esi
div ecx
mov ecx, dword [esp + 0xd0]
add eax, edi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
call fcn.0058f212
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x5e8370
lea eax, [ebp + 6]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
lea eax, [ebp + 9]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x10]
push 0x8070ff
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x78]
imul eax, edx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
mov esi, eax
imul eax, dword [ebx + 8], 0x3e8
mov ebx, 0x3e8
imul esi, dword [esp + 0xdc]
div ecx
xor edx, edx
mov ecx, dword [esp + 0xd0]
inc eax
imul eax, dword [esp + 0xdc]
div ebx
xor edx, edx
add eax, edi
mov dword [esp + 0x6c], eax
mov eax, esi
div ebx
add eax, edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
call fcn.0058f212
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x3c], ecx
mov esi, dword [eax + 0x30]
cmp ecx, dword [esi + 0x14]
jb 0x5e8171
push dword [esp + 0x38]
lea eax, [esp + 0x8c]
push str._:.1d___
push 0x20
push eax
call fcn.00471625
mov eax, dword [esp + 0x3c]
add esp, 0x10
sub dword [esp + 0x28], 2
add eax, 8
mov dword [esp + 0x24], eax
push 0x60
push dword [0x77053c]
push 0x30
call dword [sym.imp.KERNEL32.DLL_MulDiv]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0058f1a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 0x14