Function at 0x41343d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4137ae
cmp dword [ebp + 0x10], ebx
je 0x4137ae
cmp byte [0x42eeec], bl
mov ecx, 0x481858
jne 0x41346d
mov ecx, 0x481828
call fcn.0041f593
push ebx
push 0x80
push 4
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x413498
push 0xfffffffffffffffe
jmp 0x4137ab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 4]
push ebx
push ecx
mov dword [ebp - 4], ebx
push dword [0x482378]
push eax
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
push 0x40
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push 1
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call edi
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x3c]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x3c], ebx
je 0x4136cc
push 0xc
call fcn.00427db9
cmp eax, ebx
pop ecx
mov dword [esi + 0x3c], eax
jne 0x413504
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [ebp - 0x1c]
push ebx
mov dword [eax], ecx
mov eax, dword [esi + 0x3c]
mov dword [eax + 8], ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x4136cc
mov dword [ebp - 0x1c], eax
imul eax, eax, 0x1c
add eax, 4
push eax
call fcn.00427db9
cmp eax, ebx
pop ecx
je 0x413591
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x1c], eax
mov edx, eax
lea eax, [ecx - 1]
mov dword [ebp - 0x10], edx
cmp eax, ebx
jl 0x41358c
add edx, 0x10
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
call fcn.0041e62f
mov ecx, dword [ebp - 8]
call fcn.0041e62f
add dword [ebp - 0x10], 0x1c
add dword [ebp - 8], 0x1c
dec dword [ebp - 0x18]
jne 0x41356f
mov eax, dword [ebp - 0x1c]
jmp 0x413593
xor eax, eax
mov ecx, dword [esi + 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x3c]
cmp dword [eax + 8], ebx
jne 0x4135b2
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
jbe 0x4136cc
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jbe 0x413618
cmp byte [0x42eeec], bl
mov ecx, 0x481858
jne 0x4135ef
mov ecx, 0x481828
call fcn.0041f593
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push 1
push eax
push ebx
push dword [ebp + 8]
call edi
push eax
mov eax, dword [esi + 0x3c]
push dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x10]
call fcn.0041f32f
lea eax, [ebp - 4]
push 1
push eax
mov dword [ebp - 4], ebx
push dword [ebp - 8]
push dword [ebp + 8]
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ebx
mov eax, dword [eax + 8]
mov dword [eax + edx + 0xc], ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jbe 0x4136a8
cmp byte [0x42eeec], bl
mov ecx, 0x481858
jne 0x41367b
mov ecx, 0x481828
call fcn.0041f593
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push 1
push eax
push ebx
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 0x10]
push eax
mov eax, dword [esi + 0x3c]
push dword [ebp - 0x1c]
mov eax, dword [eax + 8]
lea ecx, [eax + ecx + 0x10]
call fcn.0041f32f
lea eax, [ebp - 4]
push 1
push eax
mov dword [ebp - 4], ebx
push dword [ebp - 8]
push dword [ebp + 8]
call edi
inc dword [ebp - 0x18]
add dword [ebp - 0x10], 0x1c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jb 0x4135c1
lea eax, [ebp - 4]
push 1
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call edi
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
inc eax
push eax
call fcn.00427db9
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x413705
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [esi + 0x2c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 0xc]
push edi
mov byte [eax + edi], bl
call fcn.0041e77c
push edi
call fcn.00427dae
pop ecx
push dword [ebp + 0x10]
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [0x482408]
pop edi
cmp eax, ebx
je 0x41374c
push eax
call fcn.00427dae
pop ecx
mov eax, dword [esi + 0x30]
shl eax, 2
push eax
call fcn.00427db9
cmp eax, ebx
pop ecx
mov dword [0x482408], eax
jne 0x413773
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
lea eax, [ebp - 0xc]
push ebx
push eax
mov eax, dword [esi + 0x30]
shl eax, 2
push eax
push dword [0x482408]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x42eef4]
push dword [ebp + 8]
mov dword [0x482394], eax
mov eax, dword [esi + 0x30]
mov dword [0x4813a8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x4137b1
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0x10