Function at 0x506950
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Check os version
Parse pe header
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x581efe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e8
mov eax, dword [esp + 0x4f8]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x3c], ecx
push esi
push 0x7ffff
push eax
lea ecx, [esp + 0xf4]
mov dword [esp + 0x3c], esi
call fcn.00559a50
push 1
push 0x5e0178
push 0x5e0170
lea ecx, [esp + 0xf4]
mov dword [esp + 0x50c], esi
call fcn.00559e30
mov eax, dword [esp + 0x4ec]
cmp eax, 0x200
mov eax, dword [esp + 0x4e8]
ja 0x5069ce
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
mov dword [esp + 0x28], eax
je 0x508a23
cmp dword [esp + 0x30], 1
jle 0x508a16
mov eax, dword [0x5e5d28]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [0x5eaf70], 1
je 0x508a16
test eax, eax
mov dword [esp + 0x38], eax
je 0x508a16
mov dword [esp + 0x40], ecx
mov edx, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push eax
mov byte [esp + 0x508], 1
call dword [edx + 0xc0]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x508888
mov edx, dword [eax]
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [edx + 0x24]
mov ebp, dword [esp + 0x28]
push 0xc
mov esi, dword [ebp + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 2
je 0x506a7a
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x506a7c
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 1
mov dword [esp + 0x2c], eax
jne 0x506a9a
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x2c]
mov bl, 3
test eax, eax
mov byte [esp + 0x500], bl
je 0x506ab0
mov ecx, eax
call fcn.00412aa0
jmp 0x506ab2
xor eax, eax
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str._play
push eax
call edi
add esp, 8
test eax, eax
je 0x506b41
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 4
je 0x506aee
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x506af0
xor eax, eax
test eax, eax
mov byte [esp + 0x500], bl
mov dword [esp + 0x14], eax
jne 0x506b0d
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x500], 5
je 0x506b22
mov ecx, eax
call fcn.00412aa0
jmp 0x506b24
xor eax, eax
push str._stmplay
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00412980
test bl, bl
je 0x506b43
mov bl, 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x500], 1
call fcn.00412980
mov esi, dword [ebp + 4]
push 0xc
test bl, bl
je 0x506f3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 6
je 0x506b83
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x506b85
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 1
mov dword [esp + 0x14], eax
jne 0x506ba3
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x500], 7
je 0x506bb8
mov ecx, eax
call fcn.00412aa0
jmp 0x506bba
xor eax, eax
push str._stmplay
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
mov byte [esp + 0x500], 1
call fcn.00412980
test bl, bl
je 0x506bea
push str.stmplay
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x58], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov al, byte [0x5eaf2c]
test al, 1
jne 0x506c26
mov ecx, dword [esp + 0x58]
or al, 1
mov byte [0x5eaf2c], al
mov dword [0x5eaf28], ecx
jmp 0x506c2c
mov ecx, dword [0x5eaf28]
test al, 2
jne 0x506c40
or al, 2
mov byte [0x5eaf2c], al
mov eax, dword [esp + 0x5c]
mov dword [0x5eaf24], eax
cmp ecx, 4
je 0x506c53
cmp ecx, 5
jne 0x506c5c
mov eax, dword [0x5eaf24]
test eax, eax
jne 0x506c5c
mov byte [0x5eaf74], 1
jmp 0x506c69
mov al, byte [0x5eaf74]
test al, al
je 0x506dd6
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [0x5eaf78]
mov edi, eax
mov ecx, edi
sub ecx, edx
cmp ecx, 0x3e8
jle 0x506dbc
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push 0x5ed8c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x504], 9
call fcn.0040f8c0
mov eax, dword [0x5e5d30]
mov bl, 0xa
cmp eax, esi
mov byte [esp + 0x500], bl
jne 0x506d12
cmp dword [0x5e5d2c], esi
jne 0x506d12
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
mov byte [esp + 0x500], 0xb
je 0x506ce4
mov ecx, eax
call fcn.00464f50
jmp 0x506ce6
xor eax, eax
mov edx, dword [0x5cf938]
mov ecx, 0x5eafa0
push edx
push 0x41dab0
mov byte [esp + 0x508], bl
mov dword [0x5e5d2c], eax
call fcn.00406600
mov dword [0x5e5d30], 1
mov ecx, dword [esp + 0x10]
mov esi, dword [0x5e5d2c]
mov byte [esp + 0x500], 9
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push edx
push esi
call dword [ecx + 8]
test eax, eax
jl 0x506d81
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x506d81
push 0x5d0be0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00427500
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x506d81
mov ecx, dword [0x5e5d28]
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x506d81
call fcn.00489a30
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x38]
push 1
push eax
call fcn.00488f90
mov eax, dword [esp + 0x20]
mov byte [esp + 0x500], 8
test eax, eax
je 0x506da6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x500], 1
test eax, eax
je 0x506dbc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x38]
push 0
push eax
call fcn.00489380
mov dword [0x5eaf78], edi
jmp 0x508888
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0xd
mov dword [esp + 0x24], ecx
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov bl, 0xe
cmp eax, esi
mov byte [esp + 0x500], bl
jne 0x506e64
cmp dword [0x5e5d2c], esi
jne 0x506e64
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
mov byte [esp + 0x500], 0xf
je 0x506e37
mov ecx, eax
call fcn.00464f50
jmp 0x506e39
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0x508], bl
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0xd
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x506ed8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x506ed8
push 0x5d0be0
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00427500
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x506ed8
mov ecx, dword [0x5e5d28]
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x506ed8
call fcn.00489a30
mov eax, dword [esp + 0x30]
xor esi, esi
add eax, 0xfffffffe
test eax, eax
jle 0x506f07
mov ebx, dword [esp + 0x38]
lea edi, [ebp + 8]
mov ecx, dword [edi]
push 1
push ecx
mov ecx, ebx
call fcn.00488f90
mov edx, dword [esp + 0x30]
inc esi
add edx, 0xfffffffe
add edi, 4
cmp esi, edx
jl 0x506eec
mov eax, dword [esp + 0x20]
mov byte [esp + 0x500], 0xc
test eax, eax
je 0x506f1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x500], 1
test eax, eax
je 0x508888
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x508888
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x10
je 0x506f5e
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x506f60
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 1
mov dword [esp + 0x2c], eax
jne 0x506f7e
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x2c]
mov bl, 0x11
test eax, eax
mov byte [esp + 0x500], bl
je 0x506f94
mov ecx, eax
call fcn.00412aa0
jmp 0x506f96
xor eax, eax
push str._addtolist
push eax
call edi
add esp, 8
test eax, eax
je 0x50701f
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x12
je 0x506fcc
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x506fce
xor eax, eax
test eax, eax
mov byte [esp + 0x500], bl
mov dword [esp + 0x14], eax
jne 0x506feb
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x500], 0x13
je 0x507000
mov ecx, eax
call fcn.00412aa0
jmp 0x507002
xor eax, eax
push str._stmaddtolist
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00412980
test bl, bl
je 0x507021
mov bl, 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x500], 1
call fcn.00412980
mov esi, dword [ebp + 4]
push 0xc
test bl, bl
je 0x50723d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x500], 0x14
je 0x507061
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x507063
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 1
mov dword [esp + 0x14], eax
jne 0x507081
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x500], 0x15
je 0x507096
mov ecx, eax
call fcn.00412aa0
jmp 0x507098
xor eax, eax
push str._stmaddtolist
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00412980
test bl, bl
je 0x5070c0
push str.stmaddtolist
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0x17
mov dword [esp + 0x24], ecx
call dword [eax + 4]
mov eax, dword [0x5e5d30]
mov bl, 0x18
cmp eax, esi
mov byte [esp + 0x500], bl
jne 0x50714e
cmp dword [0x5e5d2c], esi
jne 0x50714e
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
mov byte [esp + 0x500], 0x19
je 0x507120
mov ecx, eax
call fcn.00464f50
jmp 0x507122
xor eax, eax
mov ecx, dword [0x5cf938]
mov byte [esp + 0x500], 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 + 0x500], 0x17
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x5071c2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5071c2
push 0x5d0be0
lea edx, [esp + 0x1c]
push eax
push edx
call fcn.00427500
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5071c2
mov ecx, dword [0x5e5d28]
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x5071c2
call fcn.00489a30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5071d9
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
xor esi, esi
add ecx, 0xfffffffe
test ecx, ecx
jle 0x50720c
mov ebx, dword [esp + 0x38]
lea edi, [ebp + 8]
mov edx, dword [edi]
push 0
push edx
mov ecx, ebx
call fcn.00488f90
mov eax, dword [esp + 0x30]
inc esi
add eax, 0xfffffffe
add edi, 4
cmp esi, eax
jl 0x5071ed
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0x500], 0x16
je 0x50721e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x500], 1
test eax, eax
je 0x508888
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x508888
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x1a
je 0x50725f
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x507261
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 1
mov dword [esp + 0x2c], eax
jne 0x50727f
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x2c]
mov bl, 0x1b
test eax, eax
mov byte [esp + 0x500], bl
je 0x507295
mov ecx, eax
call fcn.00412aa0
jmp 0x507297
xor eax, eax
push str._addandplay
push eax
call edi
add esp, 8
test eax, eax
je 0x507320
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x1c
je 0x5072cd
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x5072cf
xor eax, eax
test eax, eax
mov byte [esp + 0x500], bl
mov dword [esp + 0x14], eax
jne 0x5072ec
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x500], 0x1d
je 0x507301
mov ecx, eax
call fcn.00412aa0
jmp 0x507303
xor eax, eax
push str._stmaddandplay
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00412980
test bl, bl
je 0x507322
mov bl, 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x500], 1
call fcn.00412980
mov esi, dword [ebp + 4]
push 0xc
test bl, bl
je 0x50740b
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x1e
je 0x507362
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x507364
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 1
mov dword [esp + 0x14], eax
jne 0x507382
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x500], 0x1f
je 0x507397
mov ecx, eax
call fcn.00412aa0
jmp 0x507399
xor eax, eax
push str._stmaddandplay
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
mov byte [esp + 0x500], 1
call fcn.00412980
test bl, bl
je 0x5073c9
push str.stmaddandplay
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov ecx, dword [esp + 0x30]
xor esi, esi
add ecx, 0xfffffffe
mov eax, 1
test ecx, ecx
jle 0x508888
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
lea edi, [edx + 8]
push eax
mov eax, dword [edi]
push eax
mov ecx, ebx
call fcn.00489380
mov ecx, dword [esp + 0x30]
xor eax, eax
inc esi
add ecx, 0xfffffffe
add edi, 4
cmp esi, ecx
jl 0x5073ea
jmp 0x508888
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x20
je 0x50742d
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x50742f
xor eax, eax
test eax, eax
mov byte [esp + 0x500], 1
mov dword [esp + 0x2c], eax
jne 0x50744d
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x2c]
mov bl, 0x21
test eax, eax
mov byte [esp + 0x500], bl
je 0x507463
mov ecx, eax
call fcn.00412aa0
jmp 0x507465
xor eax, eax
push str._seekplay
push eax
call edi
add esp, 8
test eax, eax
je 0x5074ee
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x22
je 0x50749b
push esi
mov ecx, eax
call fcn.00412a10
jmp 0x50749d
xor eax, eax
test eax, eax
mov byte [esp + 0x500], bl
mov dword [esp + 0x14], eax
jne 0x5074ba
push 0x8007000e
call fcn.00565a92
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x500], 0x23
je 0x5074cf
mov ecx, eax
call fcn.00412aa0
jmp 0x5074d1
xor eax, eax
push str._stmseekplay
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00412980
test bl, bl
je 0x5074f0
mov bl, 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x500], 1
call fcn.00412980
mov esi, dword [ebp + 4]
push 0xc
test bl, bl
je 0x507856
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x24
je 0x507532
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x507534
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x50754e
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x25
je 0x507563
mov ecx, esi
call fcn.00412aa0
jmp 0x507565
xor eax, eax
push str._stmseekplay
push eax
call edi
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507588
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x507597
push str.stmseekplay
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], 1
mov dword [esp + 0x10], 0
lea eax, [edx - 2]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x508888
mov eax, dword [esp + 0x28]
xor edi, edi
lea ebx, [eax + 8]
mov esi, dword [ebx + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, edi
mov byte [esp + 0x500], 0x26
je 0x5075ed
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x5075ef
xor esi, esi
cmp esi, edi
mov byte [esp + 0x500], 1
mov dword [esp + 0x34], esi
jne 0x507609
push 0x8007000e
call fcn.00565a92
cmp esi, edi
mov byte [esp + 0x500], 0x27
je 0x50761e
mov ecx, esi
call fcn.00412aa0
jmp 0x507620
xor eax, eax
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fstp qword [esp + 0x50]
add esp, 4
cmp esi, edi
je 0x507639
mov ecx, esi
call fcn.00412a50
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov byte [esp + 0x508], 0x28
call dword [ecx + 0xc0]
cmp dword [esp + 0x18], edi
je 0x50781b
mov esi, dword [ebx]
push 0xc
mov byte [esp + 0x504], 0x29
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, edi
mov byte [esp + 0x500], 0x2a
je 0x507695
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x507697
xor esi, esi
cmp esi, edi
mov byte [esp + 0x500], 0x29
mov dword [esp + 0x34], esi
jne 0x5076b1
push 0x8007000e
call fcn.00565a92
cmp esi, edi
mov byte [esp + 0x500], 0x2b
je 0x5076c1
mov ecx, dword [esi]
jmp 0x5076c3
xor ecx, ecx
mov eax, dword [esp + 0x18]
lea ebp, [esp + 0x1c]
push ebp
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x3c]
cmp esi, edi
mov byte [esp + 0x500], 0x29
je 0x5076e6
mov ecx, esi
call fcn.00412a50
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x507809
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov ecx, dword [eax]
push edx
push 0x5d8ff8
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x500], 0x2c
cmp eax, edi
mov dword [esp + 0x2c], edi
je 0x507728
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x5d3348
push eax
call dword [ecx]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x500], 0x2d
cmp eax, edi
je 0x507748
mov edx, dword [esp + 0x50]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x50]
push edx
push eax
call dword [ecx + 0x34]
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x20], eax
je 0x507769
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
push 0x5d9500
push ecx
call dword [eax]
mov eax, dword [esp + 0x20]
cmp eax, edi
mov byte [esp + 0x500], 0x2e
je 0x5077c7
lea edx, [esp + 0x34]
or esi, 0xffffffff
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc8]
cmp dword [esp + 0x24], edi
je 0x5077c3
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x88]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
mov byte [esp + 0x500], 0x2d
je 0x5077d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x500], 0x2c
cmp eax, edi
je 0x5077ef
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x500], 0x29
cmp eax, edi
je 0x507805
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov byte [esp + 0x500], 0x28
je 0x50781b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x500], 1
cmp eax, edi
je 0x507831
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
inc ecx
add ebx, 8
lea eax, [edx - 2]
mov dword [esp + 0x10], ecx
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jl 0x5075c4
jmp 0x508888
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x2f
je 0x50787a
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x50787c
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x507896
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x30
je 0x5078ab
mov ecx, esi
call fcn.00412aa0
jmp 0x5078ad
xor eax, eax
push str._playdvd
push eax
call edi
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x5078d0
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x5078e9
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00489a30
mov eax, dword [ebp + 8]
push 1
jmp 0x508880
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x31
je 0x507912
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x507914
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x50792e
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x32
je 0x507943
mov ecx, esi
call fcn.00412aa0
jmp 0x507945
xor eax, eax
push str._fullscreen
push eax
call edi
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507968
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x507982
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00489a30
mov ecx, dword [ebp + 8]
push 1
push ecx
jmp 0x508881
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x33
je 0x5079ab
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x5079ad
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x5079c7
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x34
je 0x5079dc
mov ecx, esi
call fcn.00412aa0
jmp 0x5079de
xor eax, eax
push str._start
push eax
call edi
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507a01
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x507a1b
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00489a30
mov edx, dword [ebp + 0xc]
push 1
push edx
jmp 0x508881
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x35
je 0x507a44
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x507a46
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x507a60
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x36
je 0x507a75
mov ecx, esi
call fcn.00412aa0
jmp 0x507a77
xor eax, eax
push 0x5e0050
push eax
call edi
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507a9a
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x507ad2
mov eax, dword [esp + 0x40]
mov byte [esp + 0x500], 0
test eax, eax
je 0x507ab4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x500], 0xffffffff
call fcn.00559bd0
xor eax, eax
jmp 0x508a49
mov esi, dword [ebp + 4]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x500], 0x37
je 0x507afb
push esi
mov ecx, eax
call fcn.00412a10
mov esi, eax
jmp 0x507afd
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x507b17
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x38
je 0x507b2c
mov ecx, esi
call fcn.00412aa0
jmp 0x507b2e
xor eax, eax
push str._changeskin
push eax
call edi
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507b51
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x507d73
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0x3a
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov bl, 0x3b
cmp eax, edi
mov byte [esp + 0x500], bl
jne 0x507be7
cmp dword [0x5e5d2c], edi
jne 0x507be7
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x500], 0x3c
je 0x507bba
mov ecx, eax
call fcn.00464f50
jmp 0x507bbc
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0x508], bl
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0x3a
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [eax + 8]
test eax, eax
mov eax, dword [esp + 0x18]
jl 0x507d3e
cmp eax, edi
je 0x507d3e
push 0x5d1b68
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00427500
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x1c]
push 0x5c
mov byte [esp + 0x504], 0x3d
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 0x10]
dec esi
lea ecx, [esp + 0x1c]
push esi
push edx
call sub.MFC42.DLL_CString::Right
mov esi, dword [esp + 0x10]
mov bl, 0x3e
push 0xc
mov byte [esp + 0x504], bl
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x500], 0x3f
je 0x507c9e
push esi
mov ecx, eax
call fcn.004129d0
mov esi, eax
jmp 0x507ca0
xor esi, esi
cmp esi, edi
mov byte [esp + 0x500], bl
mov dword [esp + 0x24], esi
jne 0x507cb9
push 0x8007000e
call fcn.00565a92
cmp esi, edi
mov byte [esp + 0x500], 0x40
je 0x507cc9
mov ecx, dword [esi]
jmp 0x507ccb
xor ecx, ecx
mov eax, dword [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
cmp esi, edi
je 0x507ce1
mov ecx, esi
call fcn.00412a50
mov eax, dword [esp + 0x1c]
push 0x207
push eax
push 0x5ead1c
mov byte [0x5eaf23], 0
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
push 0x5ead1c
push edi
push 0x7ef
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x500], 0x3d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x500], 0x3a
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x500], 0x39
cmp ecx, edi
je 0x507d58
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, edi
mov byte [esp + 0x500], 1
je 0x508888
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x508888
mov edx, dword [esp + 0x28]
push 0xc
mov edi, dword [edx + 4]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov byte [esp + 0x500], 0x41
test esi, esi
je 0x507dc3
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebp
test eax, eax
mov dword [esi], eax
jne 0x507dc5
test edi, edi
je 0x507dc5
push 0x8007000e
call fcn.00565a92
jmp 0x507dc5
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x507ddf
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x42
je 0x507df4
mov ecx, esi
call fcn.00412aa0
jmp 0x507df6
xor eax, eax
push str._openboxfile
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507e1d
mov ecx, esi
call fcn.00412a50
mov eax, dword [esp + 0x28]
test bl, bl
je 0x507e6c
mov ecx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x50c], 0x43
call fcn.00564cce
mov ecx, dword [esp + 0x44]
call fcn.0050f2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x500], 1
call sub.MFC42.DLL_CString::CString
jmp 0x508888
mov edi, dword [eax + 4]
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x500], 0x44
je 0x507eb2
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebp
test eax, eax
mov dword [esi], eax
jne 0x507eb4
test edi, edi
je 0x507eb4
push 0x8007000e
call fcn.00565a92
jmp 0x507eb4
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x507ece
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x45
je 0x507ee3
mov ecx, esi
call fcn.00412aa0
jmp 0x507ee5
xor eax, eax
push str._cookies
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507f0c
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x507f1e
mov ecx, dword [esp + 0x3c]
call fcn.0050fc80
jmp 0x508888
mov ecx, dword [esp + 0x28]
push 0xc
mov edi, dword [ecx + 4]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x500], 0x46
je 0x507f68
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebp
test eax, eax
mov dword [esi], eax
jne 0x507f6a
test edi, edi
je 0x507f6a
push 0x8007000e
call fcn.00565a92
jmp 0x507f6a
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x507f84
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x47
je 0x507f99
mov ecx, esi
call fcn.00412aa0
jmp 0x507f9b
xor eax, eax
push str._openboxfile_playnow
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x507fc2
mov ecx, esi
call fcn.00412a50
mov edx, dword [esp + 0x28]
test bl, bl
je 0x5082ac
mov eax, dword [edx + 8]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::CString_1
push 1
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x50c], 0x48
call fcn.00564cce
mov ecx, dword [esp + 0x44]
call fcn.0050f2e0
cmp dword [esp + 0x30], 4
jle 0x508296
mov eax, dword [esp + 0x28]
push 0xc
mov edi, dword [eax + 0xc]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x500], 0x49
je 0x508054
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebp
test eax, eax
mov dword [esi], eax
jne 0x508056
test edi, edi
je 0x508056
push 0x8007000e
call fcn.00565a92
jmp 0x508056
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 0x48
mov dword [esp + 0x10], esi
jne 0x508070
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x4a
je 0x508085
mov ecx, esi
call fcn.00412aa0
jmp 0x508087
xor eax, eax
push str._from
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
sete bl
xor edi, edi
cmp esi, edi
je 0x5080a8
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x508296
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0x4c
mov dword [esp + 0x10], 0x5ed8c0
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov bl, 0x4d
cmp eax, edi
mov byte [esp + 0x500], bl
jne 0x508140
cmp dword [0x5e5d2c], edi
jne 0x508140
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, edi
mov byte [esp + 0x500], 0x4e
je 0x508113
mov ecx, eax
call fcn.00464f50
jmp 0x508115
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0x508], bl
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0x4c
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x508266
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x50826a
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov edx, dword [eax]
push ecx
push 0x5d1b68
push eax
call dword [edx]
cmp esi, edi
je 0x50819c
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp dword [esp + 0x10], edi
je 0x508266
mov ebp, dword [esp + 0x3c]
cmp dword [ebp + 0x160], edi
je 0x508266
mov ecx, dword [0x5eacdc]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
je 0x508200
lea eax, [esp + 0x34]
lea ecx, [esp + 0x20]
push eax
call fcn.00493590
cmp eax, edi
jge 0x5081fc
cmp eax, 0x80004002
je 0x5081fc
push eax
call fcn.00565a92
mov eax, dword [esp + 0x20]
cmp eax, edi
mov byte [esp + 0x500], 0x4f
je 0x508254
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
lea edx, [edi + edi + 2]
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [ebx + 0x10]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 0x10
mov word [esi + edi*2], 0
mov ecx, dword [ebp + 0x20]
push 1
push esi
push 0xc04
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
mov byte [esp + 0x500], 0x4c
je 0x508266
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x500], 0x4b
cmp ecx, edi
je 0x508284
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x18]
cmp eax, edi
mov byte [esp + 0x500], 0x48
je 0x508296
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x500], 1
call sub.MFC42.DLL_CString::CString
jmp 0x508888
mov edi, dword [edx + 4]
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x500], 0x50
je 0x5082f2
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebp
test eax, eax
mov dword [esi], eax
jne 0x5082f4
test edi, edi
je 0x5082f4
push 0x8007000e
call fcn.00565a92
jmp 0x5082f4
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x50830e
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x51
je 0x508344
mov eax, dword [esi + 4]
test eax, eax
jne 0x50833f
mov eax, dword [esi]
push eax
call fcn.00565bb4
test eax, eax
mov dword [esi + 4], eax
jne 0x50833f
cmp dword [esi], 0
je 0x50833f
push 0x8007000e
call fcn.00565a92
mov eax, dword [esi + 4]
jmp 0x508346
xor eax, eax
push 0x5e0000
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
test esi, esi
je 0x50836d
mov ecx, esi
call fcn.00412a50
test bl, bl
je 0x5083d4
call fcn.004c4010
test eax, eax
je 0x508888
cmp dword [esp + 0x30], 2
jle 0x508888
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
lea edx, [edi + edi + 2]
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [ebx + 8]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 0x10
mov word [esi + edi*2], 0
mov ecx, dword [esp + 0x3c]
push 1
push esi
push 0xc04
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x508888
mov eax, dword [esp + 0x28]
push 0xc
mov edi, dword [eax + 4]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x500], 0x52
je 0x50841e
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebp
test eax, eax
mov dword [esi], eax
jne 0x508420
test edi, edi
je 0x508420
push 0x8007000e
call fcn.00565a92
jmp 0x508420
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x50843a
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x53
je 0x508470
mov eax, dword [esi + 4]
test eax, eax
jne 0x50846b
mov ecx, dword [esi]
push ecx
call fcn.00565bb4
test eax, eax
mov dword [esi + 4], eax
jne 0x50846b
cmp dword [esi], 0
je 0x50846b
push 0x8007000e
call fcn.00565a92
mov eax, dword [esi + 4]
jmp 0x508472
xor eax, eax
push str._normal
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
sete bl
xor edi, edi
cmp esi, edi
je 0x5084ab
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x5084ab
push 1
mov ecx, esi
call fcn.004492f0
test bl, bl
je 0x508638
cmp dword [esp + 0x30], 2
jle 0x508888
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov eax, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x500], 0x55
mov dword [esp + 0x10], 0x5ed8c0
call dword [eax + 4]
mov eax, dword [0x5e5d30]
mov bl, 0x56
cmp eax, edi
mov byte [esp + 0x500], bl
jne 0x50854e
cmp dword [0x5e5d2c], edi
jne 0x50854e
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x500], 0x57
je 0x508520
mov ecx, eax
call fcn.00464f50
jmp 0x508522
xor eax, eax
mov ecx, dword [0x5cf938]
mov byte [esp + 0x500], 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 + 0x500], 0x55
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x508611
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x508615
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov edx, dword [eax]
push ecx
push 0x5d1b68
push eax
call dword [edx]
cmp esi, edi
je 0x5085aa
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp dword [esp + 0x10], edi
je 0x508611
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
lea ecx, [edi + edi + 2]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [ebx + 8]
mov esi, eax
push edx
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov word [esi + edi*2], 0
mov ecx, dword [eax + 0x20]
push 1
push esi
push 0xc04
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
xor edi, edi
jmp 0x508615
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x500], 0x54
cmp ecx, edi
je 0x507d58
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x18]
jmp 0x507d58
mov edx, dword [esp + 0x28]
push 0xc
mov edi, dword [edx + 4]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x500], 0x58
je 0x508682
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call ebp
test eax, eax
mov dword [esi], eax
jne 0x508684
test edi, edi
je 0x508684
push 0x8007000e
call fcn.00565a92
jmp 0x508684
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x50869e
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x59
je 0x5086d4
mov eax, dword [esi + 4]
test eax, eax
jne 0x5086cf
mov eax, dword [esi]
push eax
call fcn.00565bb4
test eax, eax
mov dword [esi + 4], eax
jne 0x5086cf
cmp dword [esi], 0
je 0x5086cf
push 0x8007000e
call fcn.00565a92
mov eax, dword [esi + 4]
jmp 0x5086d6
xor eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll__mbsstr]
push str._tag
push eax
call ebp
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
setne bl
test esi, esi
je 0x508716
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x508716
mov ecx, esi
call fcn.00412ad0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test bl, bl
je 0x50875a
mov edx, dword [esp + 0x508]
push 0x5dffe4
push edx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, eax
lea eax, [ebp + ebp + 2]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 0x18
mov word [esi + ebp*2], 0
jmp 0x5083b9
mov eax, dword [esp + 0x28]
push 0xc
mov edi, dword [eax + 4]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x500], 0x5a
je 0x5087a8
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi], eax
jne 0x5087aa
test edi, edi
je 0x5087aa
push 0x8007000e
call fcn.00565a92
jmp 0x5087aa
xor esi, esi
test esi, esi
mov byte [esp + 0x500], 1
mov dword [esp + 0x10], esi
jne 0x5087c4
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [esp + 0x500], 0x5b
je 0x5087fa
mov eax, dword [esi + 4]
test eax, eax
jne 0x5087f5
mov ecx, dword [esi]
push ecx
call fcn.00565bb4
test eax, eax
mov dword [esi + 4], eax
jne 0x5087f5
cmp dword [esi], 0
je 0x5087f5
push 0x8007000e
call fcn.00565a92
mov eax, dword [esi + 4]
jmp 0x5087fc
xor eax, eax
push 0x5dffd0
push eax
call ebp
add esp, 8
mov byte [esp + 0x500], 1
test eax, eax
setne bl
test esi, esi
je 0x50884c
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x50884c
mov eax, dword [esi]
test eax, eax
je 0x508833
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x508843
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test bl, bl
je 0x50886c
mov eax, dword [esp + 0x3c]
push 0
push 0x3e8
push 0x111
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x508888
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00489a30
mov edx, dword [esp + 0x28]
push 1
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.00489380
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x48]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
sub esi, ecx
test esi, esi
jle 0x508a00
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
push esi
lea eax, [esp + 0x18]
push 0x5d7978
push eax
mov byte [esp + 0x50c], 0x5c
call sub.MFC42.DLL_CString::Format
mov edx, dword [0x5ed8e0]
mov ecx, 0x5ed8e0
add esp, 0xc
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x5e5d38]
mov bl, 0x5d
test eax, eax
mov byte [esp + 0x500], bl
jne 0x5089c7
mov eax, dword [0x5e5d34]
test eax, eax
jne 0x5089c7
push 0x13e4
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x500], 0x5e
je 0x508939
mov ecx, esi
call fcn.005274b0
mov dword [esi], vtable.CComObjectNoRef_class_CMPSContainer_.1.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CMPSContainer_.0
mov eax, esi
jmp 0x50893b
xor eax, eax
mov ebp, dword [0x5cf9c0]
mov dword [0x5e5d34], eax
mov eax, dword [0x5eafa8]
xor edi, edi
dec eax
mov byte [esp + 0x500], bl
test eax, eax
mov ebx, 0x41dae0
jl 0x50897d
mov ecx, dword [0x5eafa4]
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
mov edx, dword [ecx + 4]
cmp ebp, edx
jge 0x508979
inc edi
add ecx, 8
cmp edi, eax
jle 0x508964
test eax, eax
jge 0x50898e
push 1
push ebp
push ebx
push edi
mov ecx, 0x5eafa0
call fcn.00417f10
jmp 0x5089bd
xor esi, esi
test eax, eax
jle 0x5089bd
mov eax, dword [0x5eafa4]
cmp dword [eax + esi*8], 0x41dae0
je 0x5089bd
push 1
push ebp
push ebx
push edi
mov ecx, 0x5eafa0
call fcn.00417f10
mov ecx, dword [0x5eafa8]
inc esi
dec ecx
cmp esi, ecx
jl 0x508994
mov dword [0x5e5d38], 1
mov edx, dword [0x5ed8e0]
mov esi, dword [0x5e5d34]
mov ecx, 0x5ed8e0
mov byte [esp + 0x500], 0x5c
call dword [edx + 8]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00528bc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x500], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x40]
mov byte [esp + 0x500], 0
test eax, eax
je 0x508a16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor esi, esi
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x500], 0xffffffff
mov dword [eax + 0x160], esi
call fcn.00559bd0
mov eax, 1
mov ecx, dword [esp + 0x4f8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4f4
ret 4