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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov dword [esp + 0x20], ebp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x587c54
cmp dword [ebp + 0x74], esi
jne 0x587c49
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x587c49
mov byte [ebp + 0x17], 1
push ebp
call fcn.005617d0
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x24]
mov ebx, eax
test eax, eax
je 0x5883fc
push edi
cmp byte [ebx + 0x60], 0
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], edx
je 0x587c7b
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x587d64
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x587c89
mov ecx, dword [eax]
jmp 0x587c8b
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x587d64
lea esp, [esp]
cmp edi, 1
jne 0x587cf8
cmp dword [edx + 0x20], str.nth_value
jne 0x587cf8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0x50]
inc eax
inc edx
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x587cdd
push eax
push edx
push dword [esp + 0x24]
push 0x5d
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587d4f
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
inc edx
jmp 0x587d38
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0x50]
add eax, edi
mov ecx, dword [esi + 0x74]
add edx, edi
cmp dword [esi + 0x78], ecx
jg 0x587d1e
push eax
push edx
push dword [esp + 0x34]
push 0x5d
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587d4f
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
add edx, edi
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4], 0x5d
mov ecx, dword [esp + 0x18]
inc edi
mov edx, dword [esp + 0x14]
cmp edi, ecx
jl 0x587ca0
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x58], 0
jne 0x587ffe
test dword [edx + 4], 0x1000
je 0x587ffe
cmp byte [ebx + 0x11], 0x5a
je 0x587ffe
mov edi, dword [esi + 0x74]
cmp dword [esi + 0x78], edi
jg 0x587db1
push 0
push 0
push eax
push 0x32
push esi
call fcn.00515850
mov edx, dword [esp + 0x48]
add esp, 0x14
mov edi, eax
jmp 0x587de4
mov edx, dword [esp + 0x34]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x30], 0
jne 0x587f4c
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x587e0d
push 0
push 1
push edx
push 0x55
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587e40
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x40]
cmp dword [esi + 0x78], ecx
jg 0x587e5f
push 0
push edx
push dword [esp + 0x3c]
push 0x50
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587e92
mov ebp, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
lea eax, [edx + 2]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x78], ecx
jg 0x587eb5
push eax
push 2
push edx
push 0x60
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587ee8
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
add edx, 2
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x78], ecx
jg 0x587f14
push 0
push edx
push eax
push 0x89
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587fda
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x587fda
push 1
push edx
push 0
push dword [ebx + 0x3c]
push 0x19
push esi
call fcn.00560ee0
mov ecx, dword [esi + 0x74]
add esp, 0x18
mov edx, dword [ebx + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x587f7f
push 0
push 0
push edx
push 0x81
push esi
call fcn.00515850
add esp, 0x14
jmp 0x587fb2
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
lea ecx, [edx - 2]
test ecx, ecx
jns 0x587fbf
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x587fce
mov eax, 0x973eec
jmp 0x587fd7
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
test edi, edi
jns 0x587fe4
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x587ff6
mov eax, 0x973eec
jmp 0x5883ed
lea ecx, [edi + edi*4]
jmp 0x5883e7
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x58805b
sub edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x588027
push 0
push 1
push edx
push 0x55
push esi
call fcn.00515850
add esp, 0x14
jmp 0x5883f0
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x5883f0
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x10], 0x4e9d40
je 0x5883f0
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x28], eax
je 0x588151
mov al, byte [ebp + 0x13]
test al, al
jne 0x58808a
inc dword [ebp + 0x2c]
mov edi, dword [ebp + 0x2c]
jmp 0x588099
dec al
mov byte [ebp + 0x13], al
movzx eax, al
mov edi, dword [ebp + eax*4 + 0x98]
mov edx, dword [ebx + 0x50]
add edx, ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5880b9
push edi
push edx
push dword [esp + 0x34]
push 0x5d
push esi
call fcn.00515850
add esp, 0x14
jmp 0x5880e8
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x78], edx
jg 0x58810a
push 1
push 0
push edi
push 0x14
push esi
call fcn.00515850
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x588139
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
test edi, edi
je 0x588151
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x588151
movzx eax, al
mov dword [ebp + eax*4 + 0x98], edi
inc byte [ebp + 0x13]
cmp byte [ebx + 0x60], 0
je 0x58821d
mov eax, dword [ebx + 0x48]
mov edi, dword [esi + 0x74]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
mov dword [esp + 0x18], edx
cmp edx, 1
jne 0x588197
mov al, byte [ebp + 0x13]
test al, al
jne 0x588182
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x10], eax
jmp 0x5881c0
dec al
mov byte [ebp + 0x13], al
movzx eax, al
mov eax, dword [ebp + eax*4 + 0x98]
mov dword [esp + 0x10], eax
jmp 0x5881c0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
cmp edx, ecx
jg 0x5881b1
add eax, edx
sub ecx, edx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], ecx
jmp 0x5881c0
mov eax, dword [ebp + 0x2c]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x10], ecx
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x48]
push 0
push 0
push dword [esp + 0x18]
push dword [eax + 0x14]
push ebp
call fcn.0053a920
mov edx, dword [esi + 0x74]
add esp, 0x14
cmp edi, edx
jge 0x58821d
mov ebp, dword [esp + 0x2c]
mov ecx, edi
test edi, edi
jns 0x5881ec
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5881fb
mov ecx, 0x973eec
jmp 0x588204
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
cmp byte [ecx], 0x5d
jne 0x588214
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 0x30]
jne 0x588214
mov dword [ecx + 4], ebp
inc edi
cmp edi, edx
jl 0x5881e2
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
test byte [eax + 4], 0x20
je 0x5882e5
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x14]
push dword [eax + 8]
push ebp
call fcn.0053d030
mov edi, eax
add esp, 8
test edi, edi
jne 0x588249
mov eax, dword [ebp]
mov edi, dword [eax + 8]
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x588266
push 0
push 0
push 0
push 0x54
push esi
call fcn.00515850
add esp, 0x14
mov edx, eax
jmp 0x58829d
mov ebp, dword [esp + 0x24]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5882b3
push edi
push 0xfffffffffffffffe
push eax
call fcn.00502620
add esp, 0xc
jmp 0x5882e5
test edx, edx
jns 0x5882bb
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x5882da
push 0xfffffffffffffffe
push edi
push eax
push esi
call fcn.0057a650
add esp, 0x10
jmp 0x5882e5
test edi, edi
je 0x5882e5
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
mov eax, dword [esp + 0x30]
mov edx, eax
mov ecx, dword [esi + 0x74]
neg edx
mov edi, dword [ebx + 0x34]
sbb edx, edx
add edx, 0xa1
cmp dword [esi + 0x78], ecx
jg 0x588313
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
push edx
push esi
call fcn.00515850
add esp, 0x14
jmp 0x58834c
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
je 0x588366
push edx
push 0xfffffffffffffff8
push eax
call fcn.00502620
add esp, 0xc
jmp 0x588378
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x588391
mov ecx, dword [esp + 0x18]
movzx edx, cl
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp byte [ebx + 0x60], 0
je 0x5883c5
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x5883ba
test edi, edi
je 0x5883c5
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x5883c5
movzx eax, al
mov dword [ebp + eax*4 + 0x98], edi
inc byte [ebp + 0x13]
jmp 0x5883c5
cmp eax, dword [ebp + 0x1c]
jle 0x5883c5
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x5883f0
mov edx, dword [esi + 0x74]
jns 0x5883d5
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5883e4
mov eax, 0x973eec
jmp 0x5883ed
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [ebx + 0x24]
test ebx, ebx
jne 0x587c63
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret