Function at 0x414d40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x778
push ebx
push ebp
push esi
push edi
push 0
call fcn.00408fa0
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.0040daf0
add esp, 0xc
test eax, eax
jne 0x414dbb
push 0x3e7e
push 0xf
call fcn.00408f80
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.0040dbf0
add esp, 4
test eax, eax
jne 0x414deb
push 0x3e86
push 0x22
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
cmp eax, 3
je 0x414e0c
push 0x3e8d
push 0x1f
call fcn.00408f80
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 edx, [esp + 0x20]
lea eax, [esp + 0x3a8]
push edx
push eax
call fcn.0040d4d0
add esp, 8
test eax, eax
jne 0x414e56
push 0x3e96
push 0x14
call fcn.00408f80
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 0x414e95
mov ecx, 0x388
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x414e75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x414e95
push 0x3e9f
push 0x14
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
mov ecx, dword [esp + 0x58]
push 0
push 0
push ecx
push ebx
call ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], 1
test eax, eax
mov dword [esp + 0x14], 0
jne 0x414ec9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x778
ret
mov ebx, dword [esp + 0x60]
cmp eax, 1
jne 0x414ed6
mov ebx, dword [esp + 0x64]
push ebx
call fcn.004da41d
mov esi, eax
add esp, 4
test esi, esi
jne 0x414f01
push 0x3eb9
push 0x21
call fcn.00408f80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret
xor eax, eax
jmp 0x414f09
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 0x414f26
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 0x414f79
mov edx, dword [esi]
add ebp, 0xfffffffc
push edx
lea eax, [esi + 4]
push ebp
push eax
call fcn.004170a0
add esp, 0xc
test eax, eax
je 0x414f82
cmp dword [esp + 0x14], edi
je 0x414f05
jmp 0x414f95
push 0x3ed0
push 0xd
jmp 0x414f89
push 0x3ed8
push 0x1c
call fcn.00408f80
add esp, 8
mov dword [esp + 0x10], edi
push esi
call fcn.004da446
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x778
ret