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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x40], ecx
mov dword [esp], ebx
mov dword [esp + 0x44], edi
call fcn.004f8810
mov dword [esp], eax
call fcn.004ecca0
mov edx, dword [ebx + 0x14]
mov ebp, dword [edx + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0048a200
mov esi, eax
mov edi, edx
and eax, edx
mov ecx, edi
mov edx, esi
shld ecx, esi, 3
shl edx, 3
cmp eax, 0xffffffff
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
je 0x58dab0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
mov dword [esp], ebp
call fcn.004f9450
mov edx, dword [eax + 0x14]
mov edi, eax
movsx ebp, word [edx + 4]
mov dword [esp + 0x3c], ebp
movzx eax, word [edx + 2]
and ax, 0x380
mov word [esp + 0x28], ax
mov eax, 0x708e40
cmp word [esp + 0x28], 0x80
je 0x58daa6
movsx esi, word [eax]
cmp dword [esp + 0x3c], esi
jbe 0x58d976
lea ebp, [esi + esi*2]
shl ebp, 3
jmp 0x58d945
mov eax, dword [0x8670a0]
test eax, eax
je 0x58d922
call eax
mov eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x34]
xor ebx, dword [esp + 0x30]
or eax, ebx
je 0x58da40
add esi, 1
add ebp, 0x18
mov edx, dword [edi + 0x14]
cmp dword [esp + 0x3c], esi
jbe 0x58d968
mov eax, dword [edx + 0x18]
mov ebx, dword [eax + ebp]
mov edx, ebx
sar edx, 0x1f
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
call fcn.00599f70
test eax, eax
je 0x58d917
call fcn.0059a460
jmp 0x58d917
movzx edi, word [edx + 2]
and di, 0x380
mov word [esp + 0x28], di
movzx eax, word [esp + 0x28]
xor ebx, ebx
xor esi, esi
mov ecx, edx
mov word [esp + 0x3c], ax
mov eax, 0x708e40
cmp word [esp + 0x3c], 0x80
je 0x58da0b
movsx eax, word [eax]
cmp esi, eax
jae 0x58da15
mov eax, dword [ecx + 0x18]
add eax, ebx
mov edx, dword [eax]
mov ebp, dword [eax + 0xc]
mov edi, edx
sar edi, 0x1f
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x34], edi
mov dword [esp + 0x28], edx
jl 0x58d9f7
jg 0x58d9c7
cmp dword [esp + 0x30], edx
jb 0x58d9f7
xor edx, edx
shl eax, 3
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
cmp dword [esp + 0x34], edx
jg 0x58d9f7
jge 0x58d9f1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub dword [esp + 0x30], eax
sbb dword [esp + 0x34], edx
jmp 0x58d8d2
cmp dword [esp + 0x30], eax
jb 0x58d9dc
add esi, 1
add ebx, 0x18
cmp word [esp + 0x3c], 0x80
mov eax, 0x708e40
jne 0x58d994
mov eax, dword [ecx + 0x20]
movsx eax, word [eax]
cmp esi, eax
jb 0x58d99b
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x74], 0x72fc46
mov dword [esp + 0x78], esi
mov dword [esp + 0x70], edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0059b980
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
call fcn.0059b850
mov dword [esp], edi
call fcn.004f9030
test eax, eax
je 0x58dacc
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0059b850
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], 0x72fc43
mov dword [esp], ecx
call fcn.0059b980
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x74], ecx
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebp + 0x10]
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0059b850
mov eax, dword [edx + 0x20]
jmp 0x58d906
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x74], 0x72fc3e
mov dword [esp + 0x70], ecx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0059b980
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], 0x72eb0c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.00585290
jmp 0x58da70