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

Disassembly:
push 0xffffffffffffffff
push 0x59066f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x5f9f88]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x98]
mov dword [esp + 0x84], 1
cmp edi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], 0xffffffff
jne 0x58403d
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call 0x604bb3
jmp 0x58407d
lea edx, [esp + 0x28]
mov ecx, esi
push edx
call 0x60129d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 2
call 0x603845
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 1
call 0x60370c
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call 0x601270
mov ecx, esi
call 0x601303
mov esi, eax
push esi
mov dword [esp + 0x40], esi
mov edx, dword [esi]
call dword [edx + 0x10]
mov ebx, dword [esp + 0x94]
push 0xffffffffffffffff
push ebp
mov ecx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 0x38
call fcn.00587340
mov ecx, dword [esp + 0x90]
call 0x603697
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
jle 0x5843ac
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push 0
push ecx
push ebp
push esi
call dword [eax + 0x18]
test edi, edi
je 0x5840fb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x584397
cmp eax, dword [esp + 0x20]
jge 0x584397
mov edx, dword [esp + 0x10]
xor ecx, ecx
xor ebp, ebp
mov eax, dword [edx - 8]
mov dword [esp + 0x94], ebp
test eax, eax
jle 0x584152
mov eax, dword [esp + 0x48]
test edi, edi
je 0x584123
sub eax, dword [esp + 0x18]
cmp ecx, eax
je 0x58414b
jmp 0x584127
cmp ecx, eax
je 0x58414b
mov al, byte [edx + ebp]
cmp al, 0xa1
jae 0x584135
cmp al, 0xd
je 0x584135
inc ecx
jmp 0x584143
inc ecx
inc ebp
test edi, edi
je 0x584143
cmp byte [edx + ebp - 1], 0xd
jne 0x584143
dec ebp
mov eax, dword [edx - 8]
inc ebp
cmp ebp, eax
jl 0x584111
mov dword [esp + 0x94], ebp
mov eax, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, eax
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
lea ecx, [esp + 0x1c]
call 0x5fe982
mov ecx, dword [esp + 0x90]
push eax
mov byte [esp + 0x88], 3
call 0x603b24
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 1
call 0x60370c
mov eax, dword [esp + 0x78]
cmp eax, 0x63
jae 0x5841b2
mov eax, dword [eax*4 + 0x5f1eb8]
mov ecx, dword [esp + 0x90]
push eax
call 0x603ae8
jmp 0x58438e
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x14], ecx
mov ecx, 4
lea edi, [esp + 0x4c]
mov esi, 0x5bad18
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov byte [esp + 0x84], 4
push eax
jne 0x5841e5
lea eax, [esp + 0x18]
push 0x5f2ac0
push eax
jmp 0x5841ef
lea ecx, [esp + 0x18]
push 0x5f2ab4
push ecx
call 0x5feeb4
mov ecx, dword [esp + 0x9c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call 0x603b24
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x78]
xor ecx, ecx
test eax, eax
jle 0x584224
mov edx, dword [ebx + 4]
cmp dword [edx], esi
je 0x584224
inc ecx
add edx, 4
cmp ecx, eax
jl 0x584218
cmp ecx, eax
jl 0x584372
mov dword [esp + 0x38], esi
mov esi, eax
xor edi, edi
mov dword [esp + 0x34], esi
lea ebp, [esi + 1]
cmp ebp, edi
jne 0x584261
mov ecx, dword [ebx + 4]
cmp ecx, edi
je 0x584256
push ecx
mov dword [esp + 0x38], eax
call 0x602b2c
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x584361
mov edx, dword [ebx + 4]
cmp edx, edi
jne 0x58429c
lea edi, [ebp*4]
push edi
call 0x602b03
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x584361
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x5842ca
cmp eax, ebp
jge 0x5842ba
mov ecx, ebp
lea edi, [edx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 8], ebp
jmp 0x584361
jle 0x5842c2
sub eax, ebp
mov dword [esp + 0x34], eax
mov dword [ebx + 8], ebp
jmp 0x584361
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x5842f5
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x5842e8
mov ecx, 4
jmp 0x5842f5
cmp ecx, 0x400
jle 0x5842f5
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x584304
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call 0x602b03
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x34], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call 0x602b2c
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ecx
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x94]
mov dword [edx + esi*4], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 1
call 0x60370c
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x98]
inc ebp
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
mov dword [esp + 0x24], ebp
jl 0x5840cf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jge 0x5843f0
lea edx, [esp + 0x98]
push eax
push edx
lea ecx, [esp + 0x18]
call 0x5fe95f
mov ecx, dword [esp + 0x90]
push eax
mov byte [esp + 0x88], 5
call 0x603b24
lea ecx, [esp + 0x98]
mov byte [esp + 0x84], 1
call 0x60370c
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
push eax
mov ecx, esi
call 0x603481
mov dword [esp + 0x40], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 0
call 0x60370c
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x10