Function at 0x49ef20
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4e3aec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3d4
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004214f0
lea ecx, [esp + 0x140]
call fcn.0041f4a0
push 0
push 0
push 0x5191f8
mov dword [esp + 0x3f8], 0
call fcn.00420e40
add esp, 4
lea ecx, [esp + 0x148]
push eax
call fcn.0041f570
push 1
push 0x521aa8
push 0x5191e8
lea ecx, [esp + 0x14c]
call fcn.0041f630
call fcn.00421300
cmp eax, 0x80030002
jne 0x49efdb
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x3ec], 1
je 0x49efc2
mov ecx, eax
call fcn.004b8060
jmp 0x49efc4
xor eax, eax
push 1
mov ecx, eax
mov byte [esp + 0x3f0], 0
mov dword [esi + 0xd0], eax
call fcn.004ce6b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [esp + 0x14], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [0x5218ec]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push 0
push 6
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
test edi, edi
jne 0x49f046
push esi
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
je 0x49f069
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x49f069
push eax
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x49f069
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x49f062
push eax
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x52d140]
mov ebp, 0x52d140
mov ecx, ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], ebp
call dword [eax + 4]
mov eax, dword [0x526620]
mov byte [esp + 0x3ec], 2
test eax, eax
jne 0x49f10e
mov eax, dword [0x52661c]
test eax, eax
jne 0x49f10e
push 0x24
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
mov byte [esp + 0x3ec], 3
je 0x49f0de
mov ecx, esi
call fcn.0042ca70
mov dword [esi], vtable.CComObjectNoRef_class_CKMPConfigMngr_.3.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CKMPConfigMngr_.2.0
mov dword [esi + 8], vtable.CComObjectNoRef_class_CKMPConfigMngr_.1.0
mov dword [esi + 0xc], vtable.CComObjectNoRef_class_CKMPConfigMngr_.0
jmp 0x49f0e0
xor esi, esi
mov ecx, dword [0x5177d4]
mov byte [esp + 0x3ec], 2
push ecx
push 0x4036f0
mov ecx, 0x52b648
mov dword [0x52661c], esi
call fcn.00402160
mov dword [0x526620], 1
mov edx, dword [0x52d140]
mov esi, dword [0x52661c]
mov ecx, ebp
mov byte [esp + 0x3ec], 0
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [eax + 0x1bc]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49f144
call fcn.00465820
jmp 0x49f149
call fcn.004655f0
test eax, eax
je 0x49f40a
push 0
call fcn.00465100
add esp, 4
test eax, eax
je 0x49f40a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x49f1aa
xor edx, edx
mov edi, eax
mov dword [esp + 0x20], edx
or ecx, 0xffffffff
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x28], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x24], ecx
call fcn.0046d950
test eax, eax
je 0x49f19a
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.004c9740
mov edx, dword [esp + 0x10]
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x52d140]
mov ecx, ebp
mov dword [esp + 0x18], ebp
call dword [eax + 4]
mov eax, dword [0x526620]
mov byte [esp + 0x3ec], 4
test eax, eax
jne 0x49f255
mov eax, dword [0x52661c]
test eax, eax
jne 0x49f255
push 0x24
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x3ec], 5
je 0x49f225
mov ecx, esi
call fcn.0042ca70
mov dword [esi], vtable.CComObjectNoRef_class_CKMPConfigMngr_.3.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CKMPConfigMngr_.2.0
mov dword [esi + 8], vtable.CComObjectNoRef_class_CKMPConfigMngr_.1.0
mov dword [esi + 0xc], vtable.CComObjectNoRef_class_CKMPConfigMngr_.0
jmp 0x49f227
xor esi, esi
mov ecx, dword [0x5177d4]
mov byte [esp + 0x3ec], 4
push ecx
push 0x4036f0
mov ecx, 0x52b648
mov dword [0x52661c], esi
call fcn.00402160
mov dword [0x526620], 1
mov edx, dword [0x52d140]
mov ebp, dword [0x52661c]
mov ecx, 0x52d140
mov byte [esp + 0x3ec], 0
call dword [edx + 8]
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x49f280
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
test ebp, ebp
mov byte [esp + 0x3ec], 6
je 0x49f305
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, dword [ebp]
push edx
push ebp
call dword [ecx + 0x1b4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49f305
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [eax + 0x1ac]
xor esi, esi
mov edi, 0x5215a4
mov ebx, 0x8054
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
cmp edx, eax
jne 0x49f2f9
mov dword [0x51a2a0], ebx
call fcn.0046d950
mov edx, dword [eax + 0x20]
lea ecx, [esi - 0x7fab]
and ecx, 0xffff
push 0
push ecx
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
add edi, 4
inc esi
cmp edi, 0x5215c0
jl 0x49f2c6
lea ecx, [esp + 0x2c]
call fcn.0041f4a0
push 0
mov bl, 7
push 0
push 0x5191f8
mov byte [esp + 0x3f8], bl
call fcn.00420e40
add esp, 4
lea ecx, [esp + 0x34]
push eax
call fcn.0041f570
push 0
push 0x521aa4
push 0x51caa8
lea ecx, [esp + 0x38]
call fcn.0041f610
test eax, eax
jle 0x49f3af
push 0
push 0x521a9c
push 0x51caa8
lea ecx, [esp + 0x38]
call fcn.0041f610
cmp eax, 1
je 0x49f3af
push 0
lea ecx, [esp + 0x258]
call fcn.004c6340
lea ecx, [esp + 0x254]
mov byte [esp + 0x3ec], 8
call sub.MFC42.DLL_CDialog::DoModal
push 1
push 0x521a9c
push 0x51caa8
lea ecx, [esp + 0x38]
call fcn.0041f630
lea ecx, [esp + 0x254]
mov byte [esp + 0x3ec], bl
call fcn.004c6680
push 0x49fb00
push 0xea60
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x2c]
mov dword [0x52c60c], eax
mov byte [esp + 0x3ec], 6
call fcn.0041f520
test ebp, ebp
mov byte [esp + 0x3ec], 0
je 0x49f3ec
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
lea ecx, [esp + 0x140]
mov dword [esp + 0x3ec], 0xffffffff
call fcn.0041f520
mov eax, 1
jmp 0x49f431
mov ecx, dword [esp + 0x10]
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [esp + 0x140]
mov dword [esp + 0x3ec], 0xffffffff
call fcn.0041f520
xor eax, eax
mov ecx, dword [esp + 0x3e4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3e0
ret