Function at 0x59023780
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x591418d1
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.59009970
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x59023dc2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x59023dc2
push 0x5001
call fcn.591315b0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x3c], ebx
je 0x59023dc2
mov ecx, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x59023db9
jmp 0x590237f6
mov esi, dword [esp + 0x14]
mov eax, dword [0x5919cca0]
test eax, eax
je 0x59023833
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 0x5917c734
push str.Combine
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
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 0x59023859
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.590821dd
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x59023da1
push edi
push ebx
push esi
call fcn.5908298b
push esi
call fcn.59081f0d
mov eax, dword [0x59155850]
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.5909e780
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x74], 4
call fcn.5909f310
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 3
call fcn.5909f180
mov edx, dword [0x59155850]
mov dword [esp + 0x10], edx
push 0x5917ae30
push edi
push ebx
mov byte [esp + 0x7c], 5
call fcn.5900f390
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x5902394f
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.5909f180
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], 7
call fcn.5909f180
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 6
call fcn.5909f180
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], esi
call fcn.5909f180
jmp 0x59023da1
mov edi, 0x5917ae30
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.5901c1f0
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 9
call fcn.5909f310
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 5
call fcn.5909f180
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x590239b1
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x60]
call fcn.5909f310
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.5901c1f0
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xa
call fcn.5909f310
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 5
call fcn.5909f180
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.5909e780
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x7c], 5
call fcn.590236b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59023a2a
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
mov ecx, dword [eax + ebp]
mov dword [esp + 0x48], ecx
jmp 0x59023a3b
push 0xa
push 0
push eax
call fcn.59081b82
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.5901c1f0
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xc
call fcn.5909f310
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 5
call fcn.5909f180
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59023a84
mov dword [esp + 0x54], 0
jmp 0x59023a95
push 0xa
push 0
push eax
call fcn.59081b82
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.5901c1f0
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xd
call fcn.5909f310
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 5
call fcn.5909f180
push 0x5917a428
push 0x5917bd48
push esi
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.5901c080
add esp, 0x14
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], 0xe
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59023b0c
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x59023b0c
push 0xa
push 0
push eax
call fcn.59081b82
add esp, 0xc
jmp 0x59023b23
mov edx, dword [esp + 0x84]
push 0
mov eax, dword [edx]
mov eax, dword [eax + ebp]
push eax
call fcn.590bcb60
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.5909f310
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 0x59023b91
mov esi, dword [ebx]
cmp esi, edi
je 0x59023b86
mov ecx, eax
dec eax
test ecx, ecx
je 0x59023b79
lea ebp, [eax + 1]
push edi
mov ecx, esi
call fcn.5905b4f0
add esi, 0x24
dec ebp
jne 0x59023b6b
mov eax, dword [ebx]
push eax
call fcn.591315d9
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
jmp 0x59023cf5
mov ecx, dword [ebx]
cmp ecx, edi
jne 0x59023bfb
lea esi, [ebp + ebp*8]
shl esi, 2
push esi
call fcn.591315b0
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 0x59023bda
mov ecx, ebx
call fcn.59023de0
add ebx, 0x24
mov byte [esp + 0x70], 0xe
dec esi
mov dword [esp + 0x18], ebx
jne 0x59023bc6
mov eax, dword [esp + 0x90]
mov dword [eax + 8], ebp
mov dword [eax + 4], ebp
jmp 0x59023cee
mov esi, dword [ebx + 8]
cmp ebp, esi
jg 0x59023c4e
cmp eax, ebp
jge 0x59023c22
mov edx, ebp
sub edx, eax
lea eax, [eax + eax*8]
push edx
lea ecx, [ecx + eax*4]
push ecx
call fcn.5905c0e0
add esp, 8
mov dword [ebx + 4], ebp
jmp 0x59023cf5
jle 0x59023c46
lea edx, [ebp + ebp*8]
sub eax, ebp
lea esi, [ecx + edx*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x59023c46
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.5905b4f0
add esi, 0x24
dec edi
jne 0x59023c37
mov dword [ebx + 4], ebp
jmp 0x59023cf5
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
jne 0x59023c79
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x59023c6c
mov ecx, 4
jmp 0x59023c79
cmp ecx, 0x400
jle 0x59023c79
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebp, eax
jge 0x59023c86
mov dword [esp + 0x18], eax
jmp 0x59023c8c
mov dword [esp + 0x18], ebp
mov eax, ebp
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.591315b0
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.5905c0e0
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
push eax
call fcn.591315d9
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.5909f310
lea edx, [esp + 0x60]
lea ecx, [esi + 0x1c]
push edx
call fcn.5909f310
lea eax, [esp + 0x64]
lea ecx, [esi + 0x20]
push eax
call fcn.5909f310
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 5
call fcn.59099e00
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 3
call fcn.5909f180
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], 0x11
call fcn.5909f180
lea ecx, [esp + 0x60]
mov byte [esp + 0x70], 0x10
call fcn.5909f180
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], 0xffffffff
call fcn.5909f180
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 0x590237f2
push ebx
call fcn.591315d9
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