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

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
mov ebx, edx
mov edx, ecx
mov ecx, 0x12
sub esp, 0xec
lea edi, [esp + 0x50]
mov dword [esp + 0x48], eax
xor eax, eax
test ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x98]
mov ecx, 0x12
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c]
mov ebp, dword [eax + edx*4]
je 0x58b5fc
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
mov edi, eax
je 0x58b5e0
mov dword [esp + 0x34], 0
lea esi, [esi]
test edi, edi
jg 0x58b25f
lea eax, [esp + 0x98]
cmp ebx, eax
jne 0x58b491
mov eax, dword [esp + 0x34]
test eax, eax
je 0x58b491
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp], eax
call fcn.005d0e60
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x2c0]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xf0]
mov dword [esp], eax
call fcn.0063e830
add esi, eax
sub edi, eax
mov eax, dword [esp + 0x6c]
xor edx, edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x80000000
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0x80000000
test eax, eax
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
setne dl
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
je 0x58b240
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x58b34f
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp + 0xf0]
xor eax, eax
xor edx, edx
test byte [ecx + 0xb0], 1
je 0x58b368
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x2c4]
mov dword [esp + 0x84], edx
cmp dword [eax], 1
je 0x58b520
mov eax, dword [ebp]
mov edx, dword [ecx + 0x2c]
cmp dword [ebp + 0xec], 0x57415200
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x5c], edx
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 0x124]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x120]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
je 0x58b500
mov eax, dword [ecx + 0xe0]
cmp eax, 1
je 0x58b4f0
cmp eax, 0xffffffff
je 0x58b4d0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], edx
mov edx, ebp
mov dword [esp], eax
mov eax, esi
call fcn.00589790
mov esi, dword [esi + 0x504]
mov dword [esp], 0x50
call fcn.00894240
test eax, eax
mov edx, eax
je 0x58b65a
lea eax, [esp + 0x50]
mov dword [esp], edx
mov dword [esp + 0x38], edx
mov dword [esp + 4], eax
call fcn.005d2480
test eax, eax
mov edx, dword [esp + 0x38]
js 0x58b5a0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x58b590
mov eax, dword [esi + 0x24]
mov dword [eax + 0x48], edx
lea eax, [esp + 0x50]
mov dword [esi + 0x24], edx
mov dword [esp], eax
call fcn.005d23b0
test edi, edi
jg 0x58b25f
lea eax, [esp + 0x98]
cmp ebx, eax
je 0x58b253
lea edi, [esp + 0x98]
xor eax, eax
cmp ebx, edi
jne 0x58b5c4
mov edx, dword [ebp + 0xf0]
mov dword [esp + 0x30], eax
mov dword [esp], edx
call fcn.0063ef30
mov dword [ebp + 0xf0], 0
mov eax, dword [esp + 0x30]
jmp 0x58b5c4
mov eax, dword [ecx + 0x20]
cmp eax, 1
je 0x58b4f0
test eax, eax
jne 0x58b3ea
test byte [ebx + 0x24], 1
je 0x58b3ea
lea esi, [esi]
or dword [esp + 0x74], 1
jmp 0x58b3ea
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
jmp 0x58b3d2
mov eax, dword [ebp + 0x2c0]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x1a0]
test esi, esi
jle 0x58b385
mov dword [esp + 0x18], 2
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x130]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.008926e0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
jmp 0x58b385
mov dword [esi + 0x20], edx
jmp 0x58b46b
mov dword [esp], edx
mov dword [esp + 0x30], eax
call fcn.008940b0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.005d23b0
mov eax, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 0x30], eax
call fcn.005d23b0
mov eax, dword [esp + 0x30]
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0xf0]
mov eax, dword [ecx + 0xb0]
and eax, 1
mov dword [esp + 0x34], eax
jne 0x58b629
mov edi, eax
jmp 0x58b240
lea eax, [esp + 0x98]
xor edi, edi
lea ebx, [esp + 0x98]
mov dword [esp], eax
call fcn.005d0e60
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
jmp 0x58b240
mov eax, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 4], 0
mov dword [esp + 8], 0x80000000
mov edx, ebp
mov dword [esp], ebx
call fcn.00589790
jmp 0x58b231
mov eax, 0xfffffff4
jmp 0x58b5b0