Function at 0x49a8c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov byte [ebp - 0x71], cl
mov ecx, dword [edx + 4]
movzx esi, byte [ebp + 0xc]
test ecx, ecx
je 0x49aa38
mov dword [ebp - 0x64], eax
mov eax, dword [edx]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 0
mov ebx, dword [eax]
cmp dword [ebx + 4], 1
jbe 0x49ae80
mov eax, esi
movzx eax, al
mov dword [ebp - 0x68], eax
jmp 0x49a9e0
mov edi, dword [ebp + 8]
mov eax, 2
xor esi, esi
mov edx, 2
cmp edx, dword [ebx + 4]
ja 0x49aa24
add eax, dword [ebx]
lea ecx, [ebp - 0x54]
mov dword [esp], eax
call fcn.00473fd0
mov eax, dword [ebx]
sub esp, 4
movzx eax, word [eax + esi]
cmp ax, 0x21
je 0x49ab10
cmp ax, 0x40
je 0x49ab60
cmp ax, 0x23
jne 0x49ae10
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x3c]
mov dword [esp], eax
call fcn.00474110
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call fcn.004718f0
test eax, eax
mov ebx, eax
jns 0x49aa40
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x49aeb0
mov ebx, str.Incorrect_Map_command
mov dword [esp], eax
call fcn.006febd0
test ebx, ebx
jne 0x49ae15
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x49a9b9
mov dword [esp], eax
call fcn.006febd0
mov edx, dword [ebp - 0x60]
add dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [edx + 4]
cmp eax, ecx
jae 0x49ae90
mov eax, dword [edx]
mov edi, dword [ebp - 0x5c]
mov ebx, dword [eax + edi*4]
cmp dword [ebx + 4], 1
jbe 0x49ae80
mov edx, dword [ebx]
movzx eax, word [edx]
lea esi, [eax - 0x41]
lea ecx, [eax + 0x20]
cmp si, 0x1a
cmovb eax, ecx
cmp ax, 0x72
jne 0x49a910
movzx eax, word [edx + 2]
cmp ax, 0x7f
jbe 0x49ac80
mov edx, 3
xor edi, edi
cmp edx, dword [ebx + 4]
mov eax, 4
mov esi, 2
jbe 0x49a928
mov eax, dword [ebp - 0x60]
mov ebx, str.Too_short_switch
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x5c], ecx
jne 0x49ae33
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [eax + 1]
mov dword [esp + 4], 0x3a
lea eax, [esi + esi]
mov dword [ebp - 0x6c], eax
add eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004718f0
test eax, eax
js 0x49a98a
add esi, eax
lea ecx, [ebp - 0x30]
lea eax, [esi + esi + 2]
mov dword [ebp - 0x70], eax
add eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00473fd0
sub esp, 4
cmp esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
jae 0x49aa93
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x38], esi
xor esi, esi
mov word [eax + edx - 2], si
add eax, dword [ebp - 0x6c]
cmp word [eax], 0
jne 0x49acd0
mov ebx, str.Unsupported_Map_data_size
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], 0
mov dword [esp + 4], 0
mov dword [esp], 2
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenEventW]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x48], eax
je 0x49ae94
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x70], eax
call fcn.0047a960
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.0047a880
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x49aafe
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x49a9a2
jmp 0x49a99a
test edi, edi
movzx ebx, byte [ebp - 0x71]
je 0x49acc0
xor eax, eax
cmp edi, 1
jne 0x49ab31
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.004b5b40
movzx eax, al
mov edi, dword [ebp - 0x68]
mov dword [esp + 8], eax
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
call fcn.004b6790
sub esp, 0x10
jmp 0x49a9aa
movzx eax, byte [ebp - 0x71]
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [esp], ebx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
call fcn.004bc990
test al, al
je 0x49b00b
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov dword [ebp - 0x70], eax
call fcn.004b4bf0
test al, al
je 0x49afb0
mov edx, dword [ebp - 0x44]
xor ebx, ebx
mov eax, dword [ebp - 0x48]
test edx, edx
jne 0x49ac0f
jmp 0x49ac62
xor eax, eax
cmp edi, 1
jne 0x49abe2
mov dword [esp], esi
call fcn.004b5b40
movzx eax, al
mov edx, dword [ebp - 0x68]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004b6790
mov esi, dword [ebp - 0x44]
add ebx, 1
sub esp, 0x10
mov eax, dword [ebp - 0x48]
cmp esi, ebx
jbe 0x49ac20
test edi, edi
mov esi, dword [eax + ebx*4]
jne 0x49abd0
mov eax, 1
jmp 0x49abe2
test esi, esi
je 0x49ac62
lea edi, [esi*4 - 4]
nop
lea esi, [esi]
mov ebx, dword [eax + edi]
sub esi, 1
test ebx, ebx
je 0x49ac5b
mov eax, dword [ebx]
test eax, eax
je 0x49ac48
mov dword [esp], eax
call fcn.006febd0
mov dword [esp + 4], 0xc
mov dword [esp], ebx
call fcn.006fec10
mov eax, dword [ebp - 0x48]
sub edi, 4
test esi, esi
jne 0x49ac30
test eax, eax
je 0x49a9aa
mov dword [esp], eax
call fcn.006febd0
jmp 0x49a9aa
mov dword [esp + 4], eax
mov dword [esp], 0x746680
call fcn.004718a0
test eax, eax
je 0x49adf0
cmp eax, 1
jne 0x49add0
mov eax, 6
mov esi, 4
mov edx, 4
mov edi, 2
jmp 0x49a91f
mov eax, 1
jmp 0x49ab31
lea edx, [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004b5130
mov esi, eax
mov eax, dword [ebp - 0x24]
movzx edx, word [eax]
lea eax, [esi - 2]
cmp eax, 0x7ffffffe
ja 0x49aaa0
test dx, dx
jne 0x49aaa0
test esi, 1
jne 0x49aaa0
cmp ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
jae 0x49ad1f
mov edx, dword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 0x38], ebx
mov word [eax + edx - 2], cx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x6c], eax
je 0x49aec5
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
mov dword [ebp - 0x70], eax
je 0x49aee0
lea ecx, [ebp - 0x24]
call fcn.00473f00
mov eax, dword [ebp - 0x70]
cmp word [eax], 0
je 0x49aeea
mov eax, dword [ebp - 0x24]
mov ebx, str.Unsupported_Map_data
test eax, eax
je 0x49ada2
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x49aaa5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x49aaa5
test eax, eax
js 0x49aa0a
mov eax, 6
mov esi, 4
mov edx, 4
xor edi, edi
jmp 0x49a91f
mov eax, 6
mov esi, 4
mov edx, 4
mov edi, 1
jmp 0x49a91f
mov ebx, str.Incorrect_wildcard_type_marker
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x49ae24
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
cmp dword [ebp - 0x5c], ecx
je 0x49aa38
mov dword [esp], 0xc
call fcn.006fed60
mov esi, eax
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x5c]
mov ecx, esi
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004987c0
push eax
push eax
mov dword [esp + 8], 0x60c540
mov dword [esp + 4], 0x763a9c
mov dword [esp], esi
call fcn.006ff3c0
lea esi, [esi]
lea edi, [edi]
mov ebx, str.Too_short_switch
jmp 0x49ae2a
xor ebx, ebx
jmp 0x49ae2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49aad6
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
jmp 0x49aae7
mov eax, dword [ebp - 0x54]
mov ebx, str.Incorrect_Map_command
test eax, eax
jne 0x49ae1c
jmp 0x49ae24
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, str.Can_not_open_mapping
jne 0x49aaa5
mov eax, dword [ebp - 0x6c]
jmp 0x49ad46
mov ebx, str.MapViewOfFile_error
jmp 0x49adb1
shr esi, 1
cmp esi, 1
je 0x49af89
lea ebx, [eax + 2]
lea eax, [eax + esi*2]
mov dword [ebp - 0x78], eax
movzx eax, byte [ebp - 0x71]
mov dword [ebp - 0x7c], eax
jmp 0x49af5c
test edi, edi
je 0x49af82
xor eax, eax
cmp edi, 1
jne 0x49af20
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.004b5b40
movzx eax, al
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004b6790
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x20], 0
sub esp, 0x10
xor ecx, ecx
mov word [eax], dx
invalid