Function at 0x590222f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5913c5a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
push edi
push eax
call fcn.59009800
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x59022932
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x59022932
push 0x5001
call fcn.5912c500
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x3c], ebx
je 0x59022932
mov ecx, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x59022929
jmp 0x59022366
mov esi, dword [esp + 0x14]
mov eax, dword [0x59194a20]
test eax, eax
je 0x590223a3
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
mov edx, dword [esp + 0x88]
mov ecx, dword [eax + esi*4]
mov eax, dword [edx]
push ecx
mov ecx, dword [eax + esi*4]
push ecx
push esi
push 0x59175228
push str.Combine
push 0xffffffffffffffff
push 0x591949b4
call fcn.59078030
add esp, 0x1c
mov edx, dword [esp + 0x80]
mov dword [ebx], 0
lea ebp, [esi*4]
mov eax, dword [edx]
mov edi, dword [eax + ebp]
cmp edi, 0x5000
jle 0x590223c9
mov edi, 0x5000
mov ecx, dword [esp + 0x7c]
push 0x180
push 0x8000
mov edx, dword [ecx]
mov eax, dword [edx + ebp]
push eax
call fcn.5907d46d
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x59022911
push edi
push ebx
push esi
call fcn.5907dc1b
push esi
call fcn.5907d19d
mov eax, dword [0x5914f850]
add esp, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], eax
mov byte [esp + 0x70], 1
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x84]
mov eax, ebp
mov dword [esp + 0x70], 3
mov esi, dword [ecx]
lea ecx, [esp + 0x20]
add eax, esi
push eax
call fcn.59099a10
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x74], 4
call fcn.5909a5a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 3
call fcn.5909a410
mov edx, dword [0x5914f850]
mov dword [esp + 0x10], edx
push 0x59173d00
push edi
push ebx
mov byte [esp + 0x7c], 5
call fcn.5900f220
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x590224bf
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.5909a410
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], 7
call fcn.5909a410
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 6
call fcn.5909a410
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], esi
call fcn.5909a410
jmp 0x59022911
mov edi, 0x59173d00
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x24]
not ecx
mov eax, dword [edi + 0x44]
dec ecx
add esi, ecx
mov ecx, dword [edi + 0x40]
push eax
push ecx
push esi
push ebx
push edx
call fcn.5901c080
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 9
call fcn.5909a5a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 5
call fcn.5909a410
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59022521
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x60]
call fcn.5909a5a0
mov edx, dword [edi + 0x54]
mov eax, dword [edi + 0x50]
push edx
push eax
push esi
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.5901c080
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xa
call fcn.5909a5a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 5
call fcn.5909a410
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.59099a10
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x7c], 5
call fcn.59022220
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x5902259a
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
mov ecx, dword [eax + ebp]
mov dword [esp + 0x48], ecx
jmp 0x590225ab
push 0xa
push 0
push eax
call fcn.5907ce12
add esp, 0xc
mov dword [esp + 0x48], eax
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x60]
push edx
push eax
push esi
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.5901c080
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xc
call fcn.5909a5a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 5
call fcn.5909a410
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x590225f4
mov dword [esp + 0x54], 0
jmp 0x59022605
push 0xa
push 0
push eax
call fcn.5907ce12
add esp, 0xc
mov dword [esp + 0x54], eax
mov edx, dword [edi + 0x5c]
mov eax, dword [edi + 0x58]
push edx
push eax
push esi
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.5901c080
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xd
call fcn.5909a5a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 5
call fcn.5909a410
push 0x591732f4
push 0x59174c18
push esi
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.5901bf10
add esp, 0x14
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], 0xe
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5902267c
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x5902267c
push 0xa
push 0
push eax
call fcn.5907ce12
add esp, 0xc
jmp 0x59022693
mov edx, dword [esp + 0x84]
push 0
mov eax, dword [edx]
mov eax, dword [eax + ebp]
push eax
call fcn.590b7b10
add esp, 8
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x60]
mov esi, dword [edx]
mov dword [esp + 0x4c], eax
add ebp, esi
push ebp
call fcn.5909a5a0
mov ebx, dword [esp + 0x90]
xor edi, edi
mov eax, dword [ebx + 4]
mov ebp, eax
mov dword [esp + 0x38], ebp
inc ebp
cmp ebp, edi
jne 0x59022701
mov esi, dword [ebx]
cmp esi, edi
je 0x590226f6
mov ecx, eax
dec eax
test ecx, ecx
je 0x590226e9
lea ebp, [eax + 1]
push edi
mov ecx, esi
call fcn.59057070
add esi, 0x24
dec ebp
jne 0x590226db
mov eax, dword [ebx]
push eax
call fcn.5912c529
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
jmp 0x59022865
mov ecx, dword [ebx]
cmp ecx, edi
jne 0x5902276b
lea esi, [ebp + ebp*8]
shl esi, 2
push esi
call fcn.5912c500
mov ecx, esi
mov edi, eax
mov edx, ecx
mov dword [ebx], edi
xor eax, eax
mov ebx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x18], ebx
rep stosb byte es:[edi], al
lea esi, [ebp]
mov dword [esp + 0x40], ebx
test ebx, ebx
mov byte [esp + 0x70], 0xf
je 0x5902274a
mov ecx, ebx
call fcn.59022950
add ebx, 0x24
mov byte [esp + 0x70], 0xe
dec esi
mov dword [esp + 0x18], ebx
jne 0x59022736
mov eax, dword [esp + 0x90]
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
jmp 0x5902285e
mov esi, dword [ebx + 8]
cmp ebp, esi
jg 0x590227be
cmp eax, ebp
jge 0x59022792
mov edx, ebp
sub edx, eax
lea eax, [eax + eax*8]
push edx
lea ecx, [ecx + eax*4]
push ecx
call fcn.59057c60
add esp, 8
mov dword [ebx + 4], ebp
jmp 0x59022865
jle 0x590227b6
lea edx, [ebp + ebp*8]
sub eax, ebp
lea esi, [ecx + edx*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x590227b6
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.59057070
add esi, 0x24
dec edi
jne 0x590227a7
mov dword [ebx + 4], ebp
jmp 0x59022865
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
jne 0x590227e9
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x590227dc
mov ecx, 4
jmp 0x590227e9
cmp ecx, 0x400
jle 0x590227e9
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebp, eax
jge 0x590227f6
mov dword [esp + 0x18], eax
jmp 0x590227fc
mov dword [esp + 0x18], ebp
mov eax, ebp
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.5912c500
mov ebx, eax
mov eax, dword [esp + 0x94]
mov edi, ebx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea ecx, [ecx + ecx*8]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 4]
mov ecx, ebp
sub ecx, eax
lea edx, [eax + eax*8]
push ecx
lea eax, [ebx + edx*4]
push eax
call fcn.59057c60
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
push eax
call fcn.5912c529
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov dword [esi + 8], ecx
mov ebx, dword [esp + 0x90]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
lea edx, [eax + eax*8]
mov eax, dword [ebx]
lea esi, [eax + edx*4]
mov dword [esi], ecx
mov edx, dword [esp + 0x48]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x4c]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x5c]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x58]
push ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], eax
call fcn.5909a5a0
lea edx, [esp + 0x60]
lea ecx, [esi + 0x1c]
push edx
call fcn.5909a5a0
lea eax, [esp + 0x64]
lea ecx, [esi + 0x20]
push eax
call fcn.5909a5a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 5
call fcn.59095090
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.5909a410
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], 0x11
call fcn.5909a410
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 0x10
call fcn.5909a410
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], 0xffffffff
call fcn.5909a410
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x14]
inc eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x59022362
push ebx
call fcn.5912c529
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret