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

Disassembly:
push 0xffffffffffffffff
push 0x583f81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa04
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x158]
mov dword [esp + 0x30], ebx
mov dword [ebx + 0x108], 1
call fcn.0044d030
push 0
push 0
push str.Config.ini
mov dword [esp + 0xa28], 0
call fcn.004535b0
add esp, 4
lea ecx, [esp + 0x160]
push eax
call fcn.0044d100
push 1
push str.active
push str.CONFIG
lea ecx, [esp + 0x164]
call fcn.0044d1e0
push 0x5e0ef4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push 0
push eax
mov byte [esp + 0xa24], 1
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xa1c], 0
call sub.MFC42.DLL_CString::CString
call fcn.00453d40
push 0x5e0ee4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
push 1
push ecx
mov byte [esp + 0xa24], 2
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xa1c], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetThreadPriority]
push 2
mov dword [esp + 0x38], eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov esi, dword [str.StormPlayer_PrcoShareIDName_gbhgferereeEE98721eha]
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 0x51a468
push esi
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
je 0x51a48b
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x51a48b
push eax
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
jmp 0x51a48b
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x51a484
push eax
mov dword [eax], ebp
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0xa1c], 4
mov dword [esp + 0x10], 0x5ed8c0
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov byte [esp + 0xa1c], 5
cmp eax, edi
jne 0x51a51d
cmp dword [0x5e5d2c], edi
jne 0x51a51d
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0xa1c], 6
je 0x51a4ef
mov ecx, eax
call fcn.00464f50
jmp 0x51a4f1
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0xa24], 5
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0xa1c], 4
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x51a56b
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x51a56b
push 0x5d0a50
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00427500
mov eax, dword [esp + 0x20]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 0x5e0ec4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push edi
push edx
mov byte [esp + 0xa24], 7
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xa1c], 4
call sub.MFC42.DLL_CString::CString
push 1
mov ecx, ebx
call fcn.0051b1c0
push 0x5e0ea8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push 1
push eax
mov byte [esp + 0xa24], 8
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xa1c], 4
call sub.MFC42.DLL_CString::CString
push 0x5e0e94
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
push edi
push ecx
mov byte [esp + 0xa24], 9
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xa1c], 4
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push edi
push 0x7ffff
push eax
lea ecx, [esp + 0x610]
mov dword [esp + 0x38], edi
call fcn.00559a50
push 1
push 0x5e0178
push 0x5e0170
lea ecx, [esp + 0x610]
mov byte [esp + 0xa28], 0xa
call fcn.00559e30
mov eax, dword [esp + 0xa08]
cmp eax, 0x200
mov eax, dword [esp + 0xa04]
ja 0x51a66d
lea eax, [esp + 0x604]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x51aaaa
cmp dword [esp + 0x2c], 1
jle 0x51aa9b
mov edi, dword [esp + 0x14]
push 0xc
mov esi, dword [edi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0xa1c], 0xb
je 0x51a6bd
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x51a6bf
xor esi, esi
test esi, esi
mov byte [esp + 0xa1c], 0xa
mov dword [esp + 0x10], esi
jne 0x51a6d9
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0xa1c], 0xc
je 0x51a6ee
mov ecx, esi
call fcn.00412aa0
jmp 0x51a6f0
xor eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
push 0x5e0000
push eax
call ebp
add esp, 8
mov byte [esp + 0xa1c], 0xa
test eax, eax
sete bl
test esi, esi
je 0x51a719
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x51a72d
cmp dword [esp + 0x2c], 2
jle 0x51aa9b
jmp 0x51aa91
mov esi, dword [edi + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0xa1c], 0xd
je 0x51a756
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x51a758
xor esi, esi
test esi, esi
mov byte [esp + 0xa1c], 0xa
mov dword [esp + 0x10], esi
jne 0x51a772
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0xa1c], 0xe
je 0x51a787
mov ecx, esi
call fcn.00412aa0
jmp 0x51a789
xor eax, eax
push str._openboxfile_playnow
push eax
call ebp
add esp, 8
mov byte [esp + 0xa1c], 0xa
test eax, eax
sete bl
xor ebp, ebp
cmp esi, ebp
je 0x51a7ae
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x51a9cb
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
mov eax, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0xa1c], 0x10
mov dword [esp + 0x10], 0x5ed8c0
call dword [eax + 4]
mov eax, dword [0x5e5d30]
mov bl, 0x11
cmp eax, ebp
mov byte [esp + 0xa1c], bl
jne 0x51a846
cmp dword [0x5e5d2c], ebp
jne 0x51a846
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0xa1c], 0x12
je 0x51a818
mov ecx, eax
call fcn.00464f50
jmp 0x51a81a
xor eax, eax
mov ecx, dword [0x5cf938]
mov byte [esp + 0xa1c], bl
push ecx
push 0x41dab0
mov ecx, 0x5eafa0
mov dword [0x5e5d2c], eax
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0xa1c], 0x10
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x51a992
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x51a996
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov edx, dword [eax]
push ecx
push 0x5d1b68
push eax
call dword [edx]
cmp esi, ebp
je 0x51a8a2
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp dword [esp + 0x10], ebp
je 0x51a992
cmp dword [esp + 0x2c], 4
jle 0x51a992
mov eax, dword [esp + 0x14]
push 0xc
mov edi, dword [eax + 0xc]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebp
mov byte [esp + 0xa1c], 0x13
je 0x51a914
push edi
mov dword [esi + 4], ebp
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebp
mov dword [esi], eax
jne 0x51a916
cmp edi, ebp
je 0x51a916
push 0x8007000e
call fcn.00565a92
jmp 0x51a916
xor esi, esi
cmp esi, ebp
mov byte [esp + 0xa1c], 0x10
mov dword [esp + 0x24], esi
jne 0x51a930
push 0x8007000e
call fcn.00565a92
cmp esi, ebp
mov byte [esp + 0xa1c], 0x14
je 0x51a963
cmp dword [esi + 4], ebp
jne 0x51a95e
mov ecx, dword [esi]
push ecx
call fcn.00565bb4
cmp eax, ebp
mov dword [esi + 4], eax
jne 0x51a95e
cmp dword [esi], ebp
je 0x51a95e
push 0x8007000e
call fcn.00565a92
mov eax, dword [esi + 4]
jmp 0x51a965
xor eax, eax
push str._from
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
sete bl
cmp esi, ebp
je 0x51a984
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x51a992
mov dword [0x5eaf3c], 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0xa1c], 0xf
cmp ecx, ebp
je 0x51a9b0
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x28]
cmp eax, ebp
mov byte [esp + 0xa1c], 0xa
je 0x51aa9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x51aa9b
mov edx, dword [esp + 0x14]
push 0xc
mov edi, dword [edx + 4]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebp
mov byte [esp + 0xa1c], 0x15
je 0x51aa15
push edi
mov dword [esi + 4], ebp
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebp
mov dword [esi], eax
jne 0x51aa17
cmp edi, ebp
je 0x51aa17
push 0x8007000e
call fcn.00565a92
jmp 0x51aa17
xor esi, esi
cmp esi, ebp
mov byte [esp + 0xa1c], 0xa
mov dword [esp + 0x24], esi
jne 0x51aa31
push 0x8007000e
call fcn.00565a92
cmp esi, ebp
mov byte [esp + 0xa1c], 0x16
je 0x51aa64
cmp dword [esi + 4], ebp
jne 0x51aa5f
mov eax, dword [esi]
push eax
call fcn.00565bb4
cmp eax, ebp
mov dword [esi + 4], eax
jne 0x51aa5f
cmp dword [esi], ebp
je 0x51aa5f
push 0x8007000e
call fcn.00565a92
mov eax, dword [esi + 4]
jmp 0x51aa66
xor eax, eax
push str._tag
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
mov byte [esp + 0xa1c], 0xa
test eax, eax
setne bl
cmp esi, ebp
je 0x51aa8d
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x51aa9b
mov dword [0x5eaf3c], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ebx, dword [esp + 0x30]
push 0x5e0e84
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
push 1
push edx
mov byte [esp + 0xa24], 0x17
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa1c], 0xa
call sub.MFC42.DLL_CString::CString
push 0x5e0e70
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 0
push eax
mov byte [esp + 0xa24], 0x18
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa1c], 0xa
call sub.MFC42.DLL_CString::CString
call fcn.004b9520
push 0x5e0e5c
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
push 0
push ecx
mov byte [esp + 0xa24], 0x19
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa1c], 0xa
call sub.MFC42.DLL_CString::CString
push 0x5e0e38
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
push 0
push edx
mov byte [esp + 0xa24], 0x1a
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa1c], 0xa
call sub.MFC42.DLL_CString::CString
push 0
call fcn.004b7e90
add esp, 4
lea ecx, [esp + 0x10]
mov edi, eax
push 0x5e0e18
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 0
push eax
mov byte [esp + 0xa24], 0x1b
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa1c], 0xa
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x51b132
test edi, edi
je 0x51b132
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x51ac01
call fcn.004c4010
test eax, eax
je 0x51abf1
mov eax, dword [eax + 0x20]
push 0
push 0
push 0xfc2
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0
push 0
push ebx
push 0x517e90
call sub.MFC42.DLL_AfxBeginThread
call fcn.004c4010
test eax, eax
jne 0x51ac21
xor ebx, ebx
jmp 0x51ac24
mov ebx, dword [eax + 0x20]
mov eax, dword [str.StormPlayer_PrcoShareHwndName_gbhgferereeEE98721eha]
xor ebp, ebp
push eax
push ebp
push 6
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov esi, eax
cmp esi, ebp
jne 0x51ac6b
push edi
push 4
push ebp
push 4
push ebp
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, ebp
je 0x51ac8b
push ebp
push ebp
push ebp
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebp
je 0x51ac8b
push eax
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
jmp 0x51ac8b
push ebp
push ebp
push ebp
push 6
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebp
je 0x51ac84
push eax
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push str.Load_and_Init_update.dll_Begin
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
push ebp
push ecx
mov byte [esp + 0xa24], 0x1c
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa1c], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26e]
mov word [esp + 0x26c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea edx, [esp + 0x26c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [esp + 0x26c]
push str...update.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.Init_Update
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebp
je 0x51ad2a
push ebp
call eax
push str.Load_and_Init_update.dll_End
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
push 1
push edx
mov byte [esp + 0xa24], 0x1d
call fcn.00454ac0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa1c], 0xa
call sub.MFC42.DLL_CString::CString
call fcn.00450af0
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0xa1c], 0x1f
mov dword [esp + 0x24], ecx
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov bl, 0x20
cmp eax, ebp
mov byte [esp + 0xa1c], bl
jne 0x51ae03
cmp dword [0x5e5d2c], ebp
jne 0x51ae03
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebp
mov byte [esp + 0xa1c], 0x21
je 0x51add6
mov ecx, eax
call fcn.00464f50
jmp 0x51add8
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0xa24], bl
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0xa1c], 0x1f
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [eax + 8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jl 0x51aed6
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
je 0x51aed6
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov edx, dword [eax]
push ecx
push 0x5d1b68
push eax
call dword [edx]
cmp esi, edi
je 0x51ae67
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
cmp dword [esp + 0x10], edi
je 0x51aed6
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor esi, esi
mov edi, 0x5dfa24
mov ebx, 0x8054
mov eax, dword [esp + 0x30]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x51aeca
mov dword [0x5d5428], ebx
call fcn.004c4010
mov edx, dword [eax + 0x20]
lea ecx, [esi - 0x7fab]
and ecx, 0xffff
push 0
push ecx
push 0x111
push edx
call ebp
add edi, 4
inc esi
cmp edi, 0x5dfa40
jl 0x51ae9b
lea ecx, [esp + 0x44]
call fcn.0044d030
push 0
mov bl, 0x22
push 0
push str.Config.ini
mov byte [esp + 0xa28], bl
call fcn.004535b0
add esp, 4
lea ecx, [esp + 0x4c]
push eax
call fcn.0044d100
push 0
push 0x5e0dac
push str.UPDATE
lea ecx, [esp + 0x50]
call fcn.0044d1c0
test eax, eax
jle 0x51af80
push 0
push str.warn
push str.UPDATE
lea ecx, [esp + 0x50]
call fcn.0044d1c0
cmp eax, 1
je 0x51af80
push 0
lea ecx, [esp + 0x478]
call fcn.00552250
lea ecx, [esp + 0x474]
mov byte [esp + 0xa1c], 0x23
call sub.MFC42.DLL_CDialog::DoModal
push 1
push str.warn
push str.UPDATE
lea ecx, [esp + 0x50]
call fcn.0044d1e0
lea ecx, [esp + 0x474]
mov byte [esp + 0xa1c], bl
call fcn.00552590
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0x51c1e0
push 0xea60
push 0
push 0
call esi
mov dword [0x5eb3b0], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x51b06d
xor ecx, ecx
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [eax + eax + 2]
add esp, 4
mov dword [esp + 0x3c], edx
call fcn.004c4010
test eax, eax
je 0x51afe1
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x51b061
lea ecx, [esp + 0x44]
mov byte [esp + 0xa1c], 0x1f
call fcn.0044d0b0
mov eax, dword [esp + 0x18]
mov byte [esp + 0xa1c], 0x1e
test eax, eax
je 0x51b008
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa1c], 0xa
test eax, eax
je 0x51b01e
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x604]
mov byte [esp + 0xa1c], 4
call fcn.00559bd0
mov eax, dword [esp + 0x20]
mov byte [esp + 0xa1c], 3
test eax, eax
je 0x51b048
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xa1c], 0
test eax, eax
je 0x51b184
jmp 0x51b17e
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x4a
push eax
call ebp
push 0x51cb00
push 0x3e8
push 0
push 0
call esi
push 0x51cf00
push 0xbb8
push 0
push 0
mov dword [0x5eb3b4], eax
call esi
lea ecx, [esp + 0x44]
mov dword [0x5eb3b8], eax
mov byte [esp + 0xa1c], 0x1f
call fcn.0044d0b0
mov eax, dword [esp + 0x18]
mov byte [esp + 0xa1c], 0x1e
test eax, eax
je 0x51b0be
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa1c], 0xa
test eax, eax
je 0x51b0d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x604]
mov byte [esp + 0xa1c], 4
call fcn.00559bd0
mov eax, dword [esp + 0x20]
mov byte [esp + 0xa1c], 3
test eax, eax
je 0x51b0fe
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xa1c], 0
test eax, eax
je 0x51b114
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x158]
mov dword [esp + 0xa1c], 0xffffffff
call fcn.0044d0b0
mov eax, 1
jmp 0x51b19d
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
lea ecx, [esp + 0x604]
mov byte [esp + 0xa1c], 4
call fcn.00559bd0
mov eax, dword [esp + 0x20]
mov byte [esp + 0xa1c], 3
test eax, eax
je 0x51b16e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xa1c], 0
test eax, eax
je 0x51b184
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x158]
mov dword [esp + 0xa1c], 0xffffffff
call fcn.0044d0b0
xor eax, eax
mov ecx, dword [esp + 0xa14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa10
ret