Function at 0x30053c71
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x63
pop eax
cmp dword [ebp + 0xc], eax
mov ebx, 0x3e8
mov dword [ebp - 0xc28], ebx
je 0x30053edf
mov eax, 0x106
push eax
lea ecx, [ebp - 0x5fc]
push ecx
push eax
lea ecx, [ebp - 0x704]
push ecx
push eax
lea ecx, [ebp - 0x80c]
push ecx
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__splitpath_s]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add esp, 0x24
push 0x30001840
lea eax, [ebp - 0x5fb]
push eax
call esi
test eax, eax
jne 0x30053cf0
push 0x32
pop eax
jmp 0x30053edf
push 0
push edi
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [ebp - 0xc2c], eax
jne 0x30053d5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x30053edc
mov esi, 0x105
push esi
lea eax, [ebp - 0xa18]
push eax
push 0xffffffffffffffff
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xa18]
push eax
push 0x79
call fcn.300689aa
push 0
lea eax, [ebp - 0xc24]
push eax
push dword [0x300967d0]
call fcn.30047ff3
xor eax, eax
jmp 0x30053edf
lea ecx, [ebp - 0xc34]
push ecx
push eax
call fcn.30067e92
test eax, eax
mov dword [ebp - 0xc30], eax
jne 0x30053ed0
mov eax, dword [ebp - 0xc34]
cmp eax, ebx
jge 0x30053d88
mov dword [ebp - 0xc28], eax
push 0
lea eax, [ebp - 0xc30]
push eax
push dword [ebp - 0xc28]
lea eax, [ebp - 0x4f4]
push eax
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30053ed0
cmp dword [ebp - 0xc28], 0xe
jbe 0x30053df1
cmp word [ebp - 0x4f4], 2
jne 0x30053df1
cmp dword [ebp - 0x4f0], 0
jne 0x30053df1
movsx eax, word [ebp - 0x4f2]
cmp eax, 0xffff
jne 0x30053df1
xor eax, eax
cmp dword [ebp + 0xc], 0x62
sete al
dec eax
and eax, 0xffffffa1
add eax, 0x62
jmp 0x30053ecd
cmp dword [ebp - 0xc28], 4
jbe 0x30053e94
mov ebx, dword [sym.imp.MSVCR80.dll_memmove]
push 4
lea eax, [ebp - 0x4f4]
push eax
lea eax, [ebp - 0x10c]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x30001618
mov byte [ebp - 0x108], 0
call esi
test eax, eax
jne 0x30053e44
cmp dword [ebp + 0xc], 0x62
setne al
dec eax
and eax, 0x59
inc eax
inc eax
jmp 0x30053ecd
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x3000183c
push esi
call edi
push eax
lea eax, [ebp - 0x4f4]
push eax
lea eax, [ebp - 0x10c]
push eax
call ebx
add esp, 0xc
push esi
call edi
mov byte [ebp + eax - 0x10c], 0
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x30053e87
push 4
jmp 0x30053ecc
cmp dword [ebp + 0xc], 4
jne 0x30053e94
mov dword [ebp + 0xc], 3
cmp dword [ebp - 0xc28], 0xe
jbe 0x30053eb5
cmp word [ebp - 0x4f4], 0x4d42
jne 0x30053eb5
cmp dword [ebp - 0x4d6], 0
jne 0x30053eb5
push 9
jmp 0x30053ecc
cmp dword [ebp - 0xc28], 0x20
jbe 0x30053ed0
cmp dword [ebp - 0x4f4], 0x9ac6cdd7
jne 0x30053ed0
push 0xa
pop eax
mov dword [ebp + 0xc], eax
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret 8