Function at 0x494430
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 0x494619
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 0x49460b
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 0x494621
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, 2
mov edx, 2
cmp dword [edi + 4], edx
jb 0x494648
add eax, dword [edi]
lea ecx, [ebp - 0x54]
mov dword [esp], eax
call fcn.00472800
mov eax, dword [edi]
sub esp, 4
movzx eax, word [eax + esi]
cmp ax, 0x21
je 0x494655
cmp ax, 0x40
je 0x494691
cmp ax, 0x23
jne 0x494a1a
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x3c]
mov dword [esp], eax
call fcn.00472920
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov dword [esp + 4], 0x3a
mov dword [esp], eax
call fcn.00470140
test eax, eax
mov esi, eax
js 0x4945b5
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.00470140
test eax, eax
js 0x4945b5
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.00472800
sub esp, 4
cmp edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
jae 0x494559
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, 0x732c3d
cmp word [eax], 0
jne 0x4947a0
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 0x494966
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x494966
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
jmp 0x494977
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x494ac0
mov edi, 0x732c57
mov dword [esp], eax
call fcn.006eb310
test edi, edi
jne 0x494a1f
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4945e4
mov dword [esp], eax
call fcn.006eb310
mov ebx, dword [ebp - 0x6c]
add dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jae 0x494a59
mov eax, dword [ebx]
mov edx, dword [ebp - 0x5c]
mov edi, dword [eax + edx*4]
cmp dword [edi + 4], 1
ja 0x494470
mov edi, 0x732c8f
cmp ecx, dword [ebp - 0x5c]
jne 0x494c62
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx edx, word [edx + 2]
cmp edx, 0x7f
jle 0x4949a0
mov edx, 3
xor ebx, ebx
cmp dword [edi + 4], edx
mov esi, 2
mov eax, 4
jae 0x4944a4
mov eax, dword [ebp - 0x6c]
mov edi, 0x732c8f
mov ecx, dword [eax + 4]
jmp 0x494610
test ebx, ebx
movzx esi, byte [ebp - 0x71]
je 0x494a10
xor eax, eax
cmp ebx, 1
je 0x4949e0
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.004b0dd0
sub esp, 0x10
jmp 0x4945d5
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.004b6cc0
test al, al
je 0x494c21
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.004af1b0
test al, al
je 0x494be6
mov eax, dword [ebp - 0x44]
xor esi, esi
test eax, eax
jne 0x494731
jmp 0x494ae9
xor eax, eax
cmp ebx, 1
jne 0x494707
mov dword [esp], edi
call fcn.004b0130
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.004b0dd0
mov edi, dword [ebp - 0x44]
add esi, 1
sub esp, 0x10
cmp edi, esi
jbe 0x494742
mov eax, dword [ebp - 0x48]
test ebx, ebx
mov edi, dword [eax + esi*4]
jne 0x4946f5
mov eax, 1
jmp 0x494707
test edi, edi
mov eax, dword [ebp - 0x48]
je 0x494782
lea ebx, [edi*4 - 4]
mov esi, dword [eax + ebx]
sub edi, 1
test esi, esi
je 0x49477b
mov eax, dword [esi]
test eax, eax
je 0x494768
mov dword [esp], eax
call fcn.006eb310
mov dword [esp + 4], 0xc
mov dword [esp], esi
call fcn.006eb350
mov eax, dword [ebp - 0x48]
sub ebx, 4
test edi, edi
jne 0x494750
test eax, eax
je 0x4945d5
mov dword [esp], eax
call fcn.006eb310
jmp 0x4945d5
lea edx, [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004af6c0
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 0x494930
test dx, dx
jne 0x494930
mov eax, ecx
test al, 1
jne 0x494930
cmp esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
jae 0x4947f2
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 0x494aca
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 0x494ae2
lea ecx, [ebp - 0x24]
call fcn.00472730
mov eax, dword [ebp - 0x7c]
cmp word [eax], 0
jne 0x494a60
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 0x4948e9
jmp 0x494af1
test ebx, ebx
je 0x494aa0
xor eax, eax
cmp ebx, 1
jne 0x4948ad
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.004b0130
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.004b0dd0
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 0x494919
movzx edi, word [esi]
test di, di
je 0x494890
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], edx
je 0x494ab0
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 0x4948e9
test ecx, ecx
mov edx, 0
mov edi, 0x732c05
cmove edi, edx
jmp 0x494a68
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], 0
mov edi, 0x732c3d
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 0x49459c
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x70], eax
call fcn.00478ba0
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.00478a60
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x49498e
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4945cd
jmp 0x4945c5
movsx eax, dl
mov dword [esp], 0x732ca0
mov dword [esp + 4], eax
call fcn.00470100
test eax, eax
je 0x494a40
cmp eax, 1
je 0x4949f3
test eax, eax
js 0x49462e
mov esi, 4
mov eax, 6
mov edx, 4
xor ebx, ebx
jmp 0x49449b
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.004b0130
movzx eax, al
jmp 0x49466c
mov esi, 4
mov eax, 6
mov edx, 4
mov ebx, 2
jmp 0x49449b
mov eax, 1
jmp 0x49466c
mov edi, 0x732c70
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x494a2e
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 4]
jmp 0x494610
mov esi, 4
mov eax, 6
mov edx, 4
mov ebx, 1
jmp 0x49449b
xor edi, edi
jmp 0x494610
mov eax, dword [ebp - 0x24]
mov edi, 0x732bf0
test eax, eax
je 0x494a74
mov dword [esp], eax
call fcn.006eb310
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 0x49456b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x49456b
mov eax, 1
jmp 0x4948ad
lea ecx, [ebp - 0x24]
call fcn.00472200
mov edx, dword [ebp - 0x20]
jmp 0x4948fd
mov edi, 0x732c57
jmp 0x494a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, 0x732c28
jne 0x49456b
jmp 0x494819
mov edi, 0x732c14
jmp 0x494a83
mov eax, dword [ebp - 0x48]
jmp 0x494782
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x494919
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x70], eax
call fcn.00478ba0
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.00478a60
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x494b75
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x494b84
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x494b93
mov dword [esp], eax
call fcn.006eb310
mov dword [esp], ebx
call fcn.005d7530
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x494b4d
lea eax, [ebp - 0x48]
jmp 0x494b5e
call fcn.00604ff0
jmp 0x494b84
mov dword [esp], 0xc
call fcn.006eb4a0
mov dword [esp + 4], esi
mov dword [esp], 0x732cb8
mov ecx, eax
mov edi, eax
call fcn.00492360
sub esp, 8
mov dword [esp + 8], 0x609670
mov dword [esp + 4], 0x74fb3c
mov dword [esp], edi
call fcn.006ebc00
mov dword [esp], 0xc
call fcn.006eb4a0
mov dword [esp + 4], esi
mov dword [esp], 0x732ca3
mov ecx, eax
mov edi, eax
call fcn.00492360
sub esp, 8
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0x609670
mov dword [esp + 4], 0x74fb3c
mov dword [esp], edi
mov dword [ebp - 0x70], eax
call fcn.006ebc00
mov dword [esp], 0xc
call fcn.006eb4a0
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.00492360
sub esp, 8
mov dword [esp + 8], 0x609670
mov dword [esp + 4], 0x74fb3c
mov dword [esp], ebx
call fcn.006ebc00
mov dword [esp], edi
mov ebx, eax
call fcn.006eb830
mov ecx, dword [ebp - 0x70]
jmp 0x494bb3