Function at 0x41ab80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x778
push ebx
push ebp
push esi
push edi
push 0
call fcn.00413b20
mov ebx, dword [esp + 0x790]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
push 0
push 0
push 0
push ebx
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x3a9]
mov byte [esp + 0x3a8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3a8]
push 0x3e0
push eax
push ebx
call fcn.00417ba0
add esp, 0xc
test eax, eax
jne 0x41abfb
push 0x3711
push 0xf
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
lea ecx, [esp + 0x3a8]
push ecx
call fcn.00417ca0
add esp, 4
test eax, eax
jne 0x41ac50
push eax
push eax
lea edx, [esp + 0x3b0]
push eax
push edx
call fcn.00416dc0
add esp, 0x10
cmp eax, 4
je 0x41ad1e
cmp eax, 3
je 0x41ad1e
push 0x371e
push 0x22
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
cmp eax, 3
je 0x41ac71
push 0x3725
push 0x1f
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3a8]
push eax
push ecx
call fcn.004174d0
add esp, 8
test eax, eax
jne 0x41acbb
push 0x372e
push 0x14
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
mov edi, dword [esp + 0x790]
test edi, edi
je 0x41acfa
mov ecx, 0x388
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41acda
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41acfa
push 0x3737
push 0x14
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
mov edx, dword [esp + 0x58]
push 0
push 0
push edx
push ebx
call ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], 1
test eax, eax
mov dword [esp + 0x14], 0
jne 0x41ad2e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x778
ret
mov ebx, dword [esp + 0x60]
cmp eax, 1
jne 0x41ad3b
mov ebx, dword [esp + 0x64]
push ebx
call fcn.004a2973
mov esi, eax
add esp, 4
test esi, esi
jne 0x41ad66
push 0x3751
push 0x21
call fcn.00413b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
xor eax, eax
jmp 0x41ad6e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x41ad8b
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x14], 1
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x78c]
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
push ebp
push esi
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41adde
mov edx, dword [esi]
add ebp, 0xfffffffc
push edx
lea eax, [esi + 4]
push ebp
push eax
call fcn.00428990
add esp, 0xc
test eax, eax
je 0x41ade7
cmp dword [esp + 0x14], edi
je 0x41ad6a
jmp 0x41adfa
push 0x3768
push 0xd
jmp 0x41adee
push 0x3770
push 0x1c
call fcn.00413b00
add esp, 8
mov dword [esp + 0x10], edi
push esi
call fcn.004a299c
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret