Function at 0x493bf0
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 ebx, byte [ebp + 0xc]
test ecx, ecx
je 0x493dd6
mov dword [ebp - 0x60], eax
mov eax, dword [edx]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x5c], 0
mov edi, dword [eax]
cmp dword [edi + 4], 1
jbe 0x493dc8
movzx eax, bl
mov dword [ebp - 0x64], eax
nop
mov edx, dword [edi]
movzx eax, word [edx]
lea ebx, [eax - 0x41]
lea ecx, [eax + 0x20]
cmp bx, 0x19
cmovbe eax, ecx
cmp ax, 0x72
je 0x493de0
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, 2
mov edx, 2
cmp dword [edi + 4], edx
jb 0x493e07
add eax, dword [edi]
lea ecx, [ebp - 0x54]
mov dword [esp], eax
call fcn.00472990
mov eax, dword [edi]
sub esp, 4
movzx eax, word [eax + esi]
cmp ax, 0x21
je 0x493e14
cmp ax, 0x40
je 0x493e50
cmp ax, 0x23
jne 0x4941da
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x3c]
mov dword [esp], eax
call fcn.00472a10
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call fcn.004706a0
test eax, eax
mov esi, eax
js 0x493d75
lea edi, [eax + 1]
mov dword [esp + 4], 0x3a
lea eax, [edi + edi]
mov dword [ebp - 0x68], eax
add eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004706a0
test eax, eax
js 0x493d75
add edi, eax
lea ecx, [ebp - 0x30]
lea eax, [edi + edi + 2]
mov dword [ebp - 0x70], eax
add eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00472990
sub esp, 4
cmp edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
jae 0x493d19
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x38], edi
xor edi, edi
mov word [eax + edx - 2], di
add eax, dword [ebp - 0x68]
mov edi, str.Unsupported_Map_data_size
cmp word [eax], 0
jne 0x493f60
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
jne 0x494126
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x494126
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
jmp 0x494137
mov edi, dword [str.Incorrect_Map_command]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x493d8a
mov dword [esp], eax
call fcn.006e9860
test edi, edi
jne 0x4941df
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x493da1
mov dword [esp], eax
call fcn.006e9860
mov ebx, dword [ebp - 0x6c]
add dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jae 0x494219
mov eax, dword [ebx]
mov edx, dword [ebp - 0x5c]
mov edi, dword [eax + edx*4]
cmp dword [edi + 4], 1
ja 0x493c30
mov edi, str.Too_short_switch
cmp ecx, dword [ebp - 0x5c]
jne 0x49442d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, word [edx + 2]
cmp edx, 0x7f
jle 0x494160
mov edx, 3
xor ebx, ebx
cmp dword [edi + 4], edx
mov esi, 2
mov eax, 4
jae 0x493c64
mov eax, dword [ebp - 0x6c]
mov edi, str.Too_short_switch
mov ecx, dword [eax + 4]
jmp 0x493dcd
test ebx, ebx
movzx esi, byte [ebp - 0x71]
je 0x4941d0
xor eax, eax
cmp ebx, 1
je 0x4941a0
mov ebx, dword [ebp - 0x64]
mov dword [esp + 8], eax
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x60]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
call fcn.004af710
sub esp, 0x10
jmp 0x493d92
movzx eax, byte [ebp - 0x71]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [esp], esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
call fcn.004b56e0
test al, al
je 0x4942f5
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov dword [ebp - 0x70], eax
call fcn.004ada60
test al, al
je 0x4942ba
mov eax, dword [ebp - 0x44]
xor esi, esi
test eax, eax
jne 0x493ef0
jmp 0x4942a7
xor eax, eax
cmp ebx, 1
jne 0x493ec6
mov dword [esp], edi
call fcn.004aea70
movzx eax, al
mov edx, dword [ebp - 0x64]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004af710
mov edi, dword [ebp - 0x44]
add esi, 1
sub esp, 0x10
cmp edi, esi
jbe 0x493f01
mov eax, dword [ebp - 0x48]
test ebx, ebx
mov edi, dword [eax + esi*4]
jne 0x493eb4
mov eax, 1
jmp 0x493ec6
test edi, edi
mov eax, dword [ebp - 0x48]
je 0x493f42
lea ebx, [edi*4 - 4]
nop
mov esi, dword [eax + ebx]
sub edi, 1
test esi, esi
je 0x493f3b
mov eax, dword [esi]
test eax, eax
je 0x493f28
mov dword [esp], eax
call fcn.006e9860
mov dword [esp + 4], 0xc
mov dword [esp], esi
call fcn.006e98a0
mov eax, dword [ebp - 0x48]
sub ebx, 4
test edi, edi
jne 0x493f10
test eax, eax
je 0x493d92
mov dword [esp], eax
call fcn.006e9860
jmp 0x493d92
lea edx, [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004adf70
mov ecx, eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x24]
movzx edx, word [eax]
mov eax, ecx
sub eax, 2
cmp eax, 0x7ffffffe
ja 0x4940f0
test dx, dx
jne 0x4940f0
mov eax, ecx
test al, 1
jne 0x4940f0
cmp esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
jae 0x493fb2
mov edx, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x38], esi
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 - 0x70], eax
je 0x494280
mov eax, dword [ebp - 0x78]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
mov dword [ebp - 0x7c], eax
je 0x4942a0
lea ecx, [ebp - 0x24]
call fcn.00472910
mov eax, dword [ebp - 0x7c]
cmp word [eax], 0
jne 0x494220
mov edx, eax
mov eax, dword [ebp - 0x78]
lea esi, [edx + 2]
shr eax, 1
lea edx, [edx + eax*2]
cmp eax, 1
mov dword [ebp - 0x68], edx
movzx edx, byte [ebp - 0x71]
mov dword [ebp - 0x78], edx
jne 0x4940a9
jmp 0x4942af
test ebx, ebx
je 0x494260
xor eax, eax
cmp ebx, 1
jne 0x49406d
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.004aea70
movzx eax, al
mov ecx, dword [ebp - 0x64]
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.004af710
xor edx, edx
sub esp, 0x10
xor ecx, ecx
add esi, 2
cmp esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
mov word [eax], dx
je 0x4940d9
movzx edi, word [esi]
test di, di
je 0x494050
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], edx
je 0x494270
mov eax, dword [ebp - 0x24]
add esi, 2
lea ecx, [edx + 1]
mov word [eax + edx*2], di
xor edi, edi
cmp esi, dword [ebp - 0x68]
mov word [eax + edx*2 + 2], di
mov dword [ebp - 0x20], ecx
jne 0x4940a9
test ecx, ecx
mov edx, 0
mov edi, str.Map_data_error
cmove edi, edx
jmp 0x494228
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], 0
mov edi, str.Unsupported_Map_data_size
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 0x493d5c
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x70], eax
call fcn.004789f0
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.004788b0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x493d7b
mov dword [esp], eax
call fcn.006e9860
jmp 0x493d7b
movsx eax, dl
mov dword [esp], 0x731bd0
mov dword [esp + 4], eax
call fcn.00470660
test eax, eax
je 0x494200
cmp eax, 1
je 0x4941b3
test eax, eax
js 0x493ded
mov esi, 4
mov eax, 6
mov edx, 4
xor ebx, ebx
jmp 0x493c5b
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.004aea70
movzx eax, al
jmp 0x493e2b
mov esi, 4
mov eax, 6
mov edx, 4
mov ebx, 2
jmp 0x493c5b
mov eax, 1
jmp 0x493e2b
mov edi, str.Incorrect_wildcard_type_marker
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4941ee
mov dword [esp], eax
call fcn.006e9860
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
jmp 0x493dcd
mov esi, 4
mov eax, 6
mov edx, 4
mov ebx, 1
jmp 0x493c5b
xor edi, edi
jmp 0x493dcd
mov eax, dword [ebp - 0x24]
mov edi, str.Unsupported_Map_data
test eax, eax
je 0x494234
mov dword [esp], eax
call fcn.006e9860
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x493d2b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x493d2b
mov eax, 1
jmp 0x49406d
lea ecx, [ebp - 0x24]
call fcn.004723e0
mov edx, dword [ebp - 0x20]
jmp 0x4940bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, str.Can_not_open_mapping
jne 0x493d2b
jmp 0x493fd9
mov edi, str.MapViewOfFile_error
jmp 0x494243
mov eax, dword [ebp - 0x48]
jmp 0x493f42
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x4940d9
mov dword [esp], 0xc
call fcn.006e99f0
mov dword [esp + 4], esi
mov dword [esp], str.Incorrect_item_in_listfile._nCheck_charset_encoding_and__scs_switch.
mov ecx, eax
mov edi, eax
call fcn.00491a90
sub esp, 8
mov dword [esp + 8], 0x607d60
mov dword [esp + 4], 0x74e764
mov dword [esp], edi
call fcn.006ea150
mov dword [esp], 0xc
call fcn.006e99f0
mov dword [esp + 4], esi
mov dword [esp], str.Cannot_find_listfile
mov ecx, eax
mov edi, eax
call fcn.00491a90
sub esp, 8
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0x607d60
mov dword [esp + 4], 0x74e764
mov dword [esp], edi
mov dword [ebp - 0x70], eax
call fcn.006ea150
mov dword [esp], edi
mov ebx, eax
call fcn.006e9d80
mov ecx, dword [ebp - 0x70]
call fcn.00603750
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x494357
mov dword [esp], eax
call fcn.006e9860
mov dword [esp], ebx
call fcn.005d5ce0
mov dword [esp], edi
mov ebx, eax
call fcn.006e9d80
lea eax, [ebp - 0x48]
mov ecx, eax
jmp 0x494343
mov dword [esp], 0xc
call fcn.006e99f0
mov ebx, eax
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x5c]
mov ecx, ebx
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00491a90
sub esp, 8
mov dword [esp + 8], 0x607d60
mov dword [esp + 4], 0x74e764
mov dword [esp], ebx
call fcn.006ea150
mov ebx, eax
mov ecx, dword [ebp - 0x70]
jmp 0x494343