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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x118]
lea eax, [ebx + 0x124]
mov ecx, dword [eax]
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x98], ecx
dec dword [eax]
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
push edi
mov dword [ebp - 0x10], ebx
lea edi, [edx + ecx*8]
je 0x58a1ad
mov dword [edi], eax
push dword [esi + 0x44]
mov eax, dword [esi + 0x28]
jmp 0x58a1b8
mov eax, dword [esi + 0x20]
mov dword [edi], eax
push dword [esi + 0x40]
mov eax, dword [esi + 0x20]
mov ecx, dword [ebx + 0xcc]
imul eax, eax, 0xc
add eax, dword [ecx + 0x24c]
push eax
call fcn.0057f462
mov edx, dword [edi]
movzx eax, ax
mov word [edi + 6], ax
mov ecx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0xcc]
mov eax, dword [eax + 0x254]
mov edx, dword [eax + edx*4]
cmp edx, dword [eax + ecx*4]
je 0x58a1fa
mov eax, dword [ebp + 8]
or ax, 0x4000
mov word [edi + 6], ax
mov ecx, dword [esi + 0x10]
cmp ecx, 0xffffffff
je 0x58a21f
mov eax, dword [ebx + 0xcc]
mov eax, dword [eax + 0x254]
mov edx, dword [esi + 0x38]
mov edx, dword [eax + edx*4]
cmp edx, dword [eax + ecx*4]
je 0x58a21f
or word [edi + 6], 0x8000
mov eax, dword [esi + 0x5c]
cmp eax, dword [esi + 0x6c]
jne 0x58a22c
or word [edi + 6], 0x10
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 0x74]
jne 0x58a239
or word [edi + 6], 0x40
mov eax, dword [esi + 0x74]
cmp eax, dword [esi + 0x64]
jne 0x58a246
or word [edi + 6], 0x20
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x60]
jne 0x58a254
or word [edi + 6], 0x80
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x78]
jne 0x58a262
or word [edi + 6], 0x200
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x68]
jne 0x58a270
or word [edi + 6], 0x100
mov eax, dword [ebx + 0xcc]
mov ecx, dword [eax + 0x24c]
mov eax, dword [esi]
imul eax, eax, 3
add eax, dword [esi + 8]
or edx, 0xffffffff
mov eax, dword [ecx + eax*4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x28]
cmp eax, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
je 0x58a2a6
imul eax, eax, 3
add eax, dword [esi + 0x2c]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x58a2c7
mov eax, dword [esi + 0x24]
inc eax
xor edx, edx
push 3
pop ecx
div ecx
mov eax, dword [esi + 0x20]
imul eax, eax, 3
add edx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
cmp dword [ebp - 8], eax
je 0x58a2e1
cmp eax, edx
je 0x58a2db
or word [edi + 6], 0x800
jmp 0x58a2e1
or word [edi + 6], 0x400
mov eax, dword [esi + 0x10]
or edx, 0xffffffff
cmp eax, edx
je 0x58a357
mov ecx, dword [ebx + 0xcc]
imul eax, eax, 3
add eax, dword [esi + 0x18]
mov ecx, dword [ecx + 0x24c]
mov eax, dword [ecx + eax*4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x38]
cmp eax, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
je 0x58a329
mov eax, dword [esi + 0x3c]
inc eax
xor edx, edx
push 3
pop ecx
div ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
imul eax, eax, 3
add edx, eax
mov edx, dword [ecx + edx*4]
mov eax, dword [esi + 0x30]
cmp eax, 0xffffffff
je 0x58a33c
imul eax, eax, 3
add eax, dword [esi + 0x34]
mov eax, dword [ecx + eax*4]
jmp 0x58a33f
mov eax, dword [ebp - 8]
cmp edx, dword [ebp + 8]
je 0x58a357
cmp dword [ebp + 8], eax
je 0x58a351
or word [edi + 6], 0x2000
jmp 0x58a357
or word [edi + 6], 0x1000
cmp dword [esi + 0x10], 0xffffffff
jne 0x58a364
and word [edi + 4], 0
jmp 0x58a390
push 1
push dword [ebx + 0xcc]
lea ecx, [ebp - 0x2c]
push dword [esi + 0x60]
push dword [esi + 0x28]
call fcn.0057e4fb
and word [edi + 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00584c56
inc word [edi + 4]
cmp eax, dword [esi + 0x38]
jne 0x58a37f
test word [edi + 6], 0x800
je 0x58a3b5
mov eax, dword [esi]
mov ecx, dword [ebx + 0xcc]
imul eax, eax, 3
add eax, dword [esi + 8]
mov ecx, dword [ecx + 0x24c]
mov eax, dword [ecx + eax*4]
mov dword [esi + 0x84], eax
test word [edi + 6], 0x2000
je 0x58a3db
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + 0xcc]
imul eax, eax, 3
add eax, dword [esi + 0x18]
mov ecx, dword [ecx + 0x24c]
mov eax, dword [ecx + eax*4]
mov dword [esi + 0x90], eax
cmp dword [esi + 0x10], 0xffffffff
movzx eax, word [edi + 6]
jne 0x58a3fd
test al, 0x90
jne 0x58a3ef
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x80], eax
jmp 0x58a482
test al, al
js 0x58a413
test al, 0x40
je 0x58a409
test al, 0x20
jne 0x58a413
test al, 0x10
jne 0x58a413
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x7c], eax
movzx eax, word [edi + 6]
test al, al
js 0x58a430
test ax, 0x200
je 0x58a427
test ax, 0x100
jne 0x58a430
mov eax, dword [esi + 0x70]
mov dword [esi + 0x80], eax
test byte [edi + 6], 0x80
je 0x58a43f
mov eax, dword [esi + 0x70]
mov dword [esi + 0x80], eax
movzx eax, word [edi + 6]
test ax, 0x100
jne 0x58a456
test al, 0x60
jne 0x58a456
mov eax, dword [esi + 0x74]
mov dword [esi + 0x88], eax
movzx eax, word [edi + 6]
test ax, 0x300
jne 0x58a469
mov eax, dword [esi + 0x78]
mov dword [esi + 0x8c], eax
test word [edi + 6], 0x100
je 0x58a482
mov eax, dword [esi + 0x78]
cmp dword [esi + 0x80], eax
je 0x58a482
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x90]
cmp eax, 0xffffffff
je 0x58a4a0
movzx ecx, word [esi + 0x96]
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00585711
mov eax, dword [esi + 0x88]
cmp eax, 0xffffffff
je 0x58a4be
movzx ecx, word [esi + 0x96]
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00585711
mov eax, dword [esi + 0x8c]
cmp eax, 0xffffffff
je 0x58a4dc
movzx ecx, word [esi + 0x96]
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00585711
mov eax, dword [esi + 0x84]
cmp eax, 0xffffffff
je 0x58a4fa
movzx ecx, word [esi + 0x94]
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00585711
mov eax, dword [esi + 0x7c]
cmp eax, 0xffffffff
je 0x58a515
movzx ecx, word [esi + 0x94]
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00585711
mov eax, dword [esi + 0x80]
cmp eax, 0xffffffff
je 0x58a533
movzx ecx, word [esi + 0x94]
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00585711
test word [edi + 6], 0x8000
je 0x58a567
mov eax, dword [ebx + 0xcc]
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x258]
mov edx, dword [ebx + 0x150]
mov ebx, dword [ebx + 0x148]
mov ax, word [eax + ecx*2]
mov word [ebx + edx*2], ax
mov ebx, dword [ebp - 0x10]
dec dword [ebx + 0x150]
test word [edi + 6], 0x4000
je 0x58a595
mov ecx, dword [ebx + 0xcc]
mov edx, dword [esi]
mov ecx, dword [ecx + 0x258]
mov cx, word [ecx + edx*2]
mov edi, dword [ebx + 0x148]
lea eax, [ebx + 0x150]
mov esi, dword [eax]
mov word [edi + esi*2], cx
dec dword [eax]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8