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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x504]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x28], edi
mov ebp, dword [edx + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [ecx + ebx*4]
test ebp, ebp
je 0x587401
mov edi, dword [ebx + 0xcc]
lea ecx, [edi - 0x80000000]
or ecx, dword [ebx + 0xc8]
jne 0x5873f9
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ecx, esi
lea esi, [edi - 0x80000000]
or ecx, esi
je 0x5873f9
mov edi, dword [ebx + 0xd4]
mov esi, dword [ebx + 0xd0]
lea ecx, [edi - 0x80000000]
mov edx, esi
or edx, ecx
je 0x5873f9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp ecx, 0x7ffdffff
jg 0x5873f9
add esi, 1
adc edi, 0x80010000
sub edx, esi
sbb ecx, edi
mov esi, edx
mov dword [ebx + 0xc8], edx
add esi, 1
mov edi, ecx
mov edx, dword [esp + 0x28]
adc edi, 0x80010000
cmp dword [esp + 0x34], 0x7ffdffff
mov dword [ebx + 0xcc], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], esi
mov dword [ebx + 0xd0], edx
mov dword [esp + 0x2c], edi
mov dword [ebx + 0xd4], ecx
jle 0x58725c
add dword [esp + 0x30], esi
adc dword [esp + 0x34], edi
test ebp, ebp
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov edi, dword [ebx + 0x2c4]
je 0x587378
mov ecx, ebp
mov eax, dword [esp + 0x38]
cmp esi, dword [ecx + 0x20]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
je 0x587296
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x587363
mov ecx, eax
cmp esi, dword [ecx + 0x20]
jne 0x587284
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
cmp edx, 0x7ffdffff
jle 0x5872b2
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
cmp edx, 0x7ffdffff
jle 0x5872ce
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x34]
add eax, 0x80000000
or eax, dword [ebx + 0x30]
jne 0x587284
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
add edx, 0x80000000
or edx, eax
je 0x587284
cmp dword [edi], 1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
jne 0x587284
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x587284
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c0]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00892710
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
adc edx, dword [esp + 0x44]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
jmp 0x587284
cmp dword [esp + 0x3c], ecx
jne 0x587378
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x58728f
cmp dword [edi + 4], 0x1c
je 0x587410
mov eax, dword [esp + 0x48]
mov ecx, ebp
mov edx, esi
call fcn.00585ec0
mov eax, dword [ebx + 0x34]
add eax, 0x80000000
or eax, dword [ebx + 0x30]
jne 0x5873f9
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x2c4]
mov dword [ebx + 0x34], edx
cmp dword [eax], 1
jne 0x5873f9
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x5873f9
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0x1c0]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00892710
add eax, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [edx + 0x20]
jmp 0x5871a8
mov ecx, dword [ebx + 0xbc]
test ecx, ecx
je 0x587382
mov eax, dword [ebx + 0x2c0]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xb4]
test edx, edx
jne 0x587450
xor eax, eax
cmp dword [ebx + 0x1e0], 6
setg al
test eax, eax
je 0x58738f
jmp 0x587382
mov dword [esp], eax
call fcn.005e9260
mov edx, dword [ebx + 0x2c0]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0xb4]
cmp eax, edx
je 0x587382
cmp edx, 2
jle 0x587431
cmp edx, 3
je 0x587487
xor eax, eax
cmp dword [ebx + 0x1e0], 0x13
setg al
jmp 0x58743d
xor eax, eax
cmp dword [ebx + 0x1e0], 0x11
setg al
jmp 0x58743d