Function at 0x404c78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30054
call fcn.0040a8c0
push ebx
push esi
lea eax, [ebp - 0x30044]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x30044]
mov dword [ebp - 0x3004c], ecx
mov edx, dword [ebp - 0x3004c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004050b1
add esp, 8
mov dword [ebp - 0x30048], eax
cmp dword [ebp - 0x30048], 0xffffffff
jne 0x404cc6
or eax, 0xffffffff
jmp 0x4050ab
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0xc]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0xd]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0xe]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + 0xf]
shl ebx, 8
or ecx, ebx
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp - 0x30048]
sub ecx, edx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x10]
mov esi, eax
mov edx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [edx + 0x11]
shl ebx, 8
or esi, ebx
mov edx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [edx + 0x12]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x13]
shl eax, 8
or ebx, eax
shl ebx, 0x10
or esi, ebx
sub ecx, esi
mov dword [ebp - 0x30048], ecx
push 0
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x11]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x12]
mov edx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [edx + 0x13]
shl ebx, 8
or eax, ebx
shl eax, 0x10
or ecx, eax
mov eax, dword [ebp - 0x30048]
add eax, ecx
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__lseek]
add esp, 0xc
test eax, eax
jge 0x404d89
or eax, 0xffffffff
jmp 0x4050ab
push 0x400
mov edx, dword [ebp - 0x3004c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRTD.dll__read]
add esp, 0xc
mov dword [ebp - 0x30050], eax
cmp dword [ebp - 0x30050], 0
jge 0x404db9
or eax, 0xffffffff
jmp 0x4050ab
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 1]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 2]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + 3]
shl ebx, 8
or ecx, ebx
shl ecx, 0x10
or edx, ecx
cmp edx, 0x2014b50
jne 0x4050a8
cmp dword [ebp - 0x30050], 0x2e
jge 0x404e59
mov ecx, dword [ebp - 0x30050]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x3004c]
push eax
call dword [sym.imp.MSVCRTD.dll_memmove]
add esp, 0xc
mov dword [ebp - 4], eax
push 0x400
mov ecx, dword [ebp - 0x3004c]
add ecx, dword [ebp - 0x30050]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRTD.dll__read]
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x404e4a
or eax, 0xffffffff
jmp 0x4050ab
mov eax, dword [ebp - 0x30050]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x30050], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0x1c]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x1d]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x1e]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + 0x1f]
shl ebx, 8
or ecx, ebx
lea ecx, [edx + ecx + 0x2e]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x20]
mov edx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [edx + 0x21]
shl ebx, 8
or eax, ebx
add ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
cmp dword [ebp - 0x30050], eax
jge 0x404f50
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x3004c]
je 0x404edc
mov edx, dword [ebp - 0x30050]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x3004c]
push ecx
call dword [sym.imp.MSVCRTD.dll_memmove]
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x30050]
add edx, 4
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x400
jge 0x404f00
mov dword [ebp - 0x30054], 0x400
jmp 0x404f09
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30054], eax
mov ecx, dword [ebp - 0x30054]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x3004c]
add eax, dword [ebp - 0x30050]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__read]
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x404f41
or eax, 0xffffffff
jmp 0x4050ab
mov edx, dword [ebp - 0x30050]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x30050], edx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x1c]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x1d]
shl eax, 8
or ecx, eax
cmp ecx, dword [0x40b12c]
jne 0x40508b
mov ecx, dword [0x40b12c]
push ecx
mov edx, dword [str.META_INF_MANIFEST.MF]
push edx
mov eax, dword [ebp - 4]
add eax, 0x2e
push eax
call sub.MSVCRTD.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40508b
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0x18]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x19]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x1a]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + 0x1b]
shl ebx, 8
or ecx, ebx
shl ecx, 0x10
or edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x14]
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0x15]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0x16]
mov ecx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [ecx + 0x17]
shl ebx, 8
or edx, ebx
shl edx, 0x10
or eax, edx
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x2a]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x2b]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0x2c]
mov edx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [edx + 0x2d]
shl ebx, 8
or eax, ebx
shl eax, 0x10
or ecx, eax
mov eax, dword [ebp - 0x30048]
add eax, ecx
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0x1c]
mov ecx, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [ecx + 0x1d]
shl ebx, 8
or edx, ebx
lea edx, [eax + edx + 0x1e]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 0x1e]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + 0x1f]
shl ebx, 8
or ecx, ebx
add edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + 0xa]
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx + 0xb]
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x4050ab
mov edx, dword [ebp - 0x30050]
sub edx, dword [ebp - 8]
mov dword [ebp - 0x30050], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x404db9
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret