Function at 0x4d43ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x54921c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x20]
push ecx
push 4
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d43fb
push 0x414a6c
push ebx
call fcn.004d3d0f
pop ecx
jmp 0x4d456e
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f692
mov esi, eax
pop ecx
test esi, esi
jne 0x4d4421
push 0x415674
jmp 0x4d43ef
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 1]
cmp eax, ecx
jb 0x4d4564
lea eax, [ecx*2 + 2]
push eax
push edi
push esi
call fcn.004530e0
add esp, 0xc
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d4557
push esi
push 0x415684
mov ecx, ebx
call fcn.004d4fd7
push esi
call fcn.0044f6a7
pop ecx
push edi
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d43ea
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f692
mov esi, eax
pop ecx
test esi, esi
je 0x4d441a
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call fcn.004530e0
add esp, 0xc
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d4557
push esi
push 0x41569c
mov ecx, ebx
call fcn.004d4fd7
push esi
call fcn.0044f6a7
pop ecx
push edi
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d43ea
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f692
mov esi, eax
pop ecx
test esi, esi
je 0x4d441a
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
push eax
push edi
push esi
call fcn.004530e0
add esp, 0xc
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d4585
push 0x414a6c
push ebx
call fcn.004d3d0f
pop ecx
pop ecx
test esi, esi
je 0x4d456f
push esi
call fcn.0044f6a7
pop ecx
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045276d
leave
ret 4
push esi
push 0x4156c0
mov ecx, ebx
call fcn.004d4fd7
push esi
call fcn.0044f6a7
pop ecx
push edi
lea eax, [ebp - 0x20]
push eax
push 8
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
mov esi, edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d43ea
push edi
lea eax, [ebp - 0x20]
push eax
push 8
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d4557
mov eax, dword [ebp - 0x24]
movzx ebx, word [ebp - 0x24]
movzx esi, word [ebp - 0x28]
and dword [ebp - 0x30], 0
mov ecx, 0xffff0000
and eax, ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], edi
push eax
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
push eax
and edi, ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
xor eax, eax
shrd edi, eax, 0x10
push esi
shr eax, 0x10
mov eax, dword [ebp - 0x1c]
push edi
push ebx
shr eax, 0x10
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
push 0x4156dc
push dword [ebp - 0x2c]
call fcn.004d3d0f
add esp, 0x24
xor eax, eax
jmp 0x4d4574