Function at 0x4bfd80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x100]
movzx eax, word [ecx]
test ax, ax
jne 0x4bfdb7
push str.Invalid_empty_pathname
push 0xffffffffffffffff
push ebx
call fcn.004c2100
add esp, 0xc
mov eax, 0xffffffe7
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, eax
mov ebx, 0x5c
nop
cmp dx, 0x2f
jne 0x4bfdc9
mov word [ecx], bx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4bfdc0
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x100]
movzx eax, word [esi]
mov edx, eax
mov ecx, eax
cmp eax, 0x5c
jne 0x4c0046
cmp word [esi + 2], ax
jne 0x4c0046
movzx eax, word [esi + 4]
cmp eax, 0x2e
je 0x4bfe0e
cmp eax, 0x3f
jne 0x4c0046
cmp word [esi + 6], 0x5c
mov ecx, edx
jne 0x4c0046
cmp eax, 0x3f
jne 0x4bff6c
movzx eax, word [esi + 8]
cmp eax, 0x55
je 0x4bfe32
cmp eax, 0x75
jne 0x4bfe5d
movzx ecx, word [esi + 0xa]
cmp ecx, 0x4e
je 0x4bfe40
cmp ecx, 0x6e
jne 0x4bfe5d
movzx ecx, word [esi + 0xc]
cmp ecx, 0x43
je 0x4bfe4e
cmp ecx, 0x63
jne 0x4bfe5d
cmp word [esi + 0xe], 0x5c
jne 0x4bfe5d
lea eax, [esi + 0x10]
jmp 0x4c0041
cmp eax, 0x56
je 0x4bfe6b
cmp eax, 0x76
jne 0x4c003e
movzx eax, word [esi + 0xa]
cmp eax, 0x4f
je 0x4bfe7d
cmp eax, 0x6f
jne 0x4c003e
movzx eax, word [esi + 0xc]
cmp eax, 0x4c
je 0x4bfe8f
cmp eax, 0x6c
jne 0x4c003e
movzx eax, word [esi + 0xe]
cmp eax, 0x55
je 0x4bfea1
cmp eax, 0x75
jne 0x4c003e
movzx eax, word [esi + 0x10]
cmp eax, 0x4d
je 0x4bfeb3
cmp eax, 0x6d
jne 0x4c003e
movzx eax, word [esi + 0x12]
cmp eax, 0x45
je 0x4bfec5
cmp eax, 0x65
jne 0x4c003e
cmp word [esi + 0x14], 0x7b
jne 0x4c003e
lea eax, [esi + 0x16]
push 8
push eax
call fcn.004c0e30
add esp, 8
test eax, eax
jne 0x4bff60
cmp word [esi + 0x26], 0x2d
jne 0x4bff60
lea eax, [esi + 0x28]
push 4
push eax
call fcn.004c0e30
add esp, 8
test eax, eax
jne 0x4bff60
cmp word [esi + 0x30], 0x2d
jne 0x4bff60
lea eax, [esi + 0x32]
push 4
push eax
call fcn.004c0e30
add esp, 8
test eax, eax
jne 0x4bff60
cmp word [esi + 0x3a], 0x2d
jne 0x4bff60
lea eax, [esi + 0x3c]
push 4
push eax
call fcn.004c0e30
add esp, 8
test eax, eax
jne 0x4bff60
cmp word [esi + 0x44], 0x2d
jne 0x4bff60
lea eax, [esi + 0x46]
push 0xc
push eax
call fcn.004c0e30
add esp, 8
test eax, eax
jne 0x4bff60
cmp word [esi + 0x5e], 0x7d
jne 0x4bff60
cmp word [esi + 0x60], 0x5c
jne 0x4bff60
movzx ecx, word [esi + 0x62]
add esi, 0x62
jmp 0x4c0046
movzx ecx, word [esi + 8]
add esi, 8
jmp 0x4c0046
cmp eax, 0x2e
jne 0x4c003e
movzx eax, word [esi + 8]
cmp eax, 0x50
je 0x4bff87
cmp eax, 0x70
jne 0x4c003e
movzx eax, word [esi + 0xa]
cmp eax, 0x48
je 0x4bff99
cmp eax, 0x68
jne 0x4c003e
movzx eax, word [esi + 0xc]
cmp eax, 0x59
je 0x4bffab
cmp eax, 0x79
jne 0x4c003e
movzx eax, word [esi + 0xe]
cmp eax, 0x53
je 0x4bffbd
cmp eax, 0x73
jne 0x4c003e
movzx eax, word [esi + 0x10]
cmp eax, 0x49
je 0x4bffcb
cmp eax, 0x69
jne 0x4c003e
movzx eax, word [esi + 0x12]
cmp eax, 0x43
je 0x4bffd9
cmp eax, 0x63
jne 0x4c003e
cmp eax, 0x41
je 0x4bffe3
cmp eax, 0x61
jne 0x4c003e
cmp eax, 0x4c
je 0x4bffed
cmp eax, 0x6c
jne 0x4c003e
cmp eax, 0x44
je 0x4bfff7
cmp eax, 0x64
jne 0x4c003e
cmp eax, 0x52
je 0x4c0001
cmp eax, 0x72
jne 0x4c003e
cmp eax, 0x49
je 0x4c000b
cmp eax, 0x69
jne 0x4c003e
cmp eax, 0x56
je 0x4c0015
cmp eax, 0x76
jne 0x4c003e
cmp eax, 0x45
je 0x4c001f
cmp eax, 0x65
jne 0x4c003e
mov ax, word [esi + 0x14]
sub ax, 0x30
cmp ax, 9
ja 0x4c003e
cmp word [esi + 0x16], 0
jne 0x4c003e
push str.Path_is_a_physical_drive_name
jmp 0x4c01d3
lea eax, [esi + 8]
movzx ecx, word [eax]
mov esi, eax
movzx eax, cx
cmp eax, 0x61
jb 0x4c0053
cmp eax, 0x7a
jbe 0x4c005f
mov ecx, eax
cmp eax, 0x41
jb 0x4c0087
cmp eax, 0x5a
ja 0x4c0087
cmp word [esi + 2], 0x3a
mov ecx, eax
jne 0x4c0087
movzx edi, word [esi + 4]
test di, di
jne 0x4c007b
push str.Path_is_a_drive_name
jmp 0x4c01d3
mov ecx, eax
cmp edi, 0x5c
jne 0x4c0087
add esi, 4
mov ecx, edi
mov dword [ebp - 0xc], esi
mov edi, esi
mov dword [ebp - 8], edi
mov ebx, esi
mov dword [ebp - 0x10], esi
mov edx, esi
movzx eax, cx
test cx, cx
je 0x4c00e7
movzx ecx, cx
mov edi, 0x5f
cmp cx, 0x3a
je 0x4c00d0
cmp cx, 0x2a
je 0x4c00d0
cmp cx, 0x3f
je 0x4c00d0
cmp cx, 0x22
je 0x4c00d0
cmp cx, 0x3c
je 0x4c00d0
cmp cx, 0x3e
je 0x4c00d0
cmp cx, 0x7c
jne 0x4c00d3
mov word [esi], di
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4c00a6
movzx eax, word [edx]
mov edi, dword [ebp - 8]
movzx esi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x4c00ff
movzx edx, word [ebx + 2]
mov eax, 0x5c
mov dword [ebp - 4], eax
cmp esi, 0x5c
lea ecx, [ebx + 2]
cmovne ecx, dword [ebp - 0xc]
test dx, dx
je 0x4c01ea
mov ebx, dword [ebp + 8]
movzx edx, dx
cmp dx, 0x5c
jne 0x4c0126
mov esi, dword [ebp - 4]
jmp 0x4c01bb
movzx eax, dx
cmp dx, 0x2e
jne 0x4c0171
movzx edx, word [ecx + 2]
test dx, dx
je 0x4c01ea
cmp edx, 0x5c
jne 0x4c0149
mov esi, dword [ebp - 4]
add ecx, 4
jmp 0x4c01be
mov eax, 0x2e
cmp edx, eax
jne 0x4c0171
movzx edx, word [ecx + 4]
cmp edx, 0x5c
je 0x4c0160
test dx, dx
jne 0x4c0171
test dword [ebx + 0x118], 0x200
mov eax, 0x2e
jne 0x4c01ce
mov esi, dword [ebp - 4]
movzx eax, ax
test si, si
je 0x4c018a
mov eax, 0x5c
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
test ax, ax
je 0x4c01ed
movzx edx, ax
movzx esi, dx
cmp dx, 0x5c
je 0x4c01b0
add ecx, 2
mov word [edi], dx
add edi, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x4c0192
test si, si
je 0x4c01ea
movzx esi, si
mov dword [ebp - 4], esi
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4c0118
jmp 0x4c01ed
push str.Path_contains_..
push 0xffffffffffffffff
push ebx
call fcn.004c2100
add esp, 0xc
mov eax, 0xffffffe7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
cmp edi, dword [ebp - 0x10]
jne 0x4c0207
mov ecx, 0x5c
test si, si
jne 0x4c0201
mov ecx, 0x2e
mov word [edi], cx
add edi, 2
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret