Function at 0x41b820
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x7b4
push ebx
push ebp
push esi
push edi
push 0
call fcn.0041aad0
mov eax, dword [0x52ddb4]
add esp, 4
test eax, eax
jne 0x41b859
push 0x1f0a
push 2
call fcn.0041aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov ebp, dword [esp + 0x7c8]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 1
push eax
push 0
push ebp
mov dword [esp + 0x24], 0
call esi
push 0
push 0
mov ebx, eax
push 0
push ebp
mov dword [esp + 0x20], ebx
call esi
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x3e5]
mov byte [esp + 0x3e4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x3e4]
push 0x3e0
push ecx
push ebp
stosb byte es:[edi], al
call fcn.0041f580
add esp, 0xc
lea edx, [esp + 0x14]
mov edi, eax
push 0
push edx
push ebx
push ebp
call esi
test edi, edi
jne 0x41b8e7
push 0x1f1e
push 0xf
call fcn.0041aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x3e4]
push eax
push ecx
call fcn.0041eee0
add esp, 8
test eax, eax
jne 0x41b931
push 0x1f26
push 0x14
call fcn.0041aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
lea edx, [esp + 0x5c]
push edx
call fcn.00425bc0
add esp, 4
test eax, eax
jne 0x41b95e
push 0x1f2d
push 0x1f
call fcn.0041aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov edi, dword [esp + 0x7cc]
test edi, edi
je 0x41b974
mov ecx, 0xe2
lea esi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x7d0]
mov edx, dword [esp + 0x7d8]
test edi, edi
jne 0x41b99a
test edx, edx
jne 0x41b99a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7b4
ret
mov eax, dword [esp + 0x3dc]
mov ecx, dword [esp + 0x7d4]
test eax, eax
jne 0x41b9d6
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
test edx, edx
rep stosb byte es:[edi], al
je 0x41b9c6
mov dword [edx], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7b4
ret
cmp ecx, eax
jae 0x41b9f2
test edx, edx
je 0x41b9e0
mov dword [edx], eax
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x7b4
ret
push eax
call fcn.004d2462
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41ba1d
push 0x1f51
push 0x21
call fcn.0041aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret
mov ecx, dword [esp + 0x3dc]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x3d8]
lea eax, [esp + 0x3dc]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x3dc]
lea edx, [esp + 0x18]
push esi
push edx
push eax
push ebx
push ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push esi
push ecx
push edx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x41bb89
mov eax, dword [esp + 0x3e0]
mov ecx, dword [esp + 0x3dc]
push eax
push ecx
push ebx
call fcn.00429370
add esp, 0xc
test eax, eax
je 0x41bb92
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x404]
lea edx, [esp + 0x1c]
push 0x40
push edx
push eax
call fcn.00418540
add esp, 0xc
test eax, eax
jne 0x41bb0e
mov eax, dword [esp + 0x3dc]
mov edi, dword [esp + 0x7d0]
mov ecx, eax
mov esi, ebx
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 ecx, dword [esp + 0x7d8]
test ecx, ecx
je 0x41bb04
mov dword [ecx], eax
mov esi, 1
jmp 0x41bba1
push eax
call fcn.00410a20
mov edx, eax
add esp, 4
test edx, edx
je 0x41bb80
mov ecx, dword [esp + 0x7d4]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x7d4]
push ecx
mov ecx, dword [esp + 0x3e4]
push eax
push ecx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
lea eax, [esp + 0x30]
push ecx
push eax
mov ecx, edx
mov dword [esp + 0x2c], 0
call dword [esi + 0x14]
mov esi, eax
test esi, esi
je 0x41bb77
mov eax, dword [esp + 0x7d8]
test eax, eax
je 0x41bba1
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x41bba1
push 0x1f8f
push 0x12
jmp 0x41bb99
push 0x1f94
push 0xc
jmp 0x41bb99
push 0x1f63
push 0xd
jmp 0x41bb99
push 0x1f6a
push 0x1c
call fcn.0041aab0
add esp, 8
push ebx
call fcn.004d248b
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7b4
ret