Function at 0x41c099
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a797a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
push edi
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x2c]
mov esi, dword [edx + 4]
xor edi, edi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x20
call fcn.0045b410
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x30], esi
mov dword [ecx + 0x34], edi
mov edx, dword [ebp - 0x54]
add edx, 0x30
mov eax, dword [ebp - 0x54]
add eax, 0x28
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jg 0x41c154
jl 0x41c127
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ecx]
cmp eax, dword [edx]
jae 0x41c154
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0xffffffff
je 0x41c154
mov edx, dword [ebp - 0x54]
add edx, 0x30
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
cmp dword [eax + 4], 0
jg 0x41c2cf
jl 0x41c154
mov ecx, dword [ebp - 0x60]
cmp dword [ecx], 0
jae 0x41c2cf
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
xor ecx, ecx
mov cl, byte [eax + 1]
test ecx, ecx
je 0x41c26d
mov edx, dword [ebp - 0x54]
add edx, 0x30
mov eax, dword [ebp - 0x54]
add eax, 0x28
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41c26d
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x41c26d
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
add edx, 8
push edx
lea ecx, [ebp - 0x34]
call fcn.00585936
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
add ecx, 0xc
call fcn.004039e0
test eax, eax
jne 0x41c1e1
push 0x60b324
lea ecx, [ebp - 0x34]
call fcn.00585f9d
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
add edx, 0xc
push edx
lea ecx, [ebp - 0x34]
call fcn.00585fd9
lea ecx, [ebp - 0x34]
call fcn.004039a0
add eax, 2
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005861ce
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
mov dl, byte [eax + 1]
mov byte [ecx], dl
mov eax, dword [ebp - 0x3c]
sub eax, 1
push eax
push 0
lea ecx, [ebp - 0x34]
call fcn.00585ff1
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
call fcn.00459fb0
add esp, 0xc
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x20]
call fcn.0042aab2
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.005861f7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00585bc1
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x28], 1
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x30], 1
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
je 0x41c2b2
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.0041c840
mov dword [ebp - 0x6c], eax
jmp 0x41c2b9
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x54]
mov dword [edx], 0
mov ecx, dword [ebp - 0x54]
call fcn.0041bccc
jmp 0x41c3ce
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
add ecx, 4
call fcn.00585ff1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x41c305
jmp 0x41c3ce
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], 9
mov ecx, 0x2000
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov byte [edx], 5
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
call fcn.00459fb0
add esp, 0xc
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
add eax, 5
push eax
call fcn.00459fb0
add esp, 0xc
mov byte [ebp - 0x10], 1
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
jbe 0x41c3c4
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x20]
call fcn.0042aab2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8