Function at 0x402e30
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x41480e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebp
push esi
call fcn.00401440
xor ebp, ebp
mov dword [esp + 0xc], ebp
lea eax, [esp + 8]
push eax
push 0x4155fc
push 0x17
push ebp
push 0x4158a8
mov dword [esp + 0x16c], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebp
jl 0x402eb1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, ebp
jl 0x402ea3
mov eax, dword [esp + 8]
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0x415420
push eax
call dword [edx]
mov esi, eax
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, ebp
jge 0x402ebd
cmp esi, ebp
mov dword [esp + 0xc], ebp
jl 0x403301
push str.SupportGame.xml
mov word [esp + 0x30], 8
call fcn.0040d2e0
mov dword [esp + 0x34], eax
cmp dword [esp + 0xc], ebp
mov byte [esp + 0x158], 1
jne 0x402eea
push 0x80004003
call fcn.0040d260
mov ecx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.004011c0
mov bx, ax
neg bx
lea ecx, [esp + 0x30]
sbb bl, bl
push ecx
inc bl
mov byte [esp + 0x160], 0
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x402f20
push eax
call fcn.0040d260
test bl, bl
jne 0x4032e7
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], ebp
mov byte [esp + 0x15c], 2
jne 0x402f4a
push 0x80004003
call fcn.0040d260
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov esi, dword [esp + 0x10]
je 0x402f58
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebp
mov edx, dword [esi]
push esi
call dword [edx + 0xb4]
cmp eax, ebp
jl 0x4032d1
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], ebp
mov byte [esp + 0x15c], 3
jne 0x402f94
push 0x80004003
call fcn.0040d260
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov esi, dword [esp + 0x18]
je 0x402fa2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebp
mov edx, dword [esi]
push esi
call dword [edx + 0x30]
mov dword [esp + 0xc], ebp
cmp dword [esp + 0x14], ebp
mov byte [esp + 0x15c], 4
jne 0x402fcd
push 0x80004003
call fcn.0040d260
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004019e0
push eax
lea ecx, [esp + 0x10]
call fcn.004019b0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x402ff3
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [esp + 0x14], ebp
jne 0x403003
push 0x80004003
call fcn.0040d260
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.004019e0
push eax
lea ecx, [esp + 0x10]
call fcn.004019b0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x403029
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0xc]
cmp ebx, ebp
mov byte [esp + 0x15c], 5
jne 0x403055
push 0x80004003
call fcn.0040d260
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x403055
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebp
mov eax, dword [ebx]
push ebx
call dword [eax + 0x30]
cmp eax, ebp
jl 0x4031e7
xor edi, edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x160], 6
jmp 0x403080
cmp dword [esp + 0x24], ebp
jne 0x403090
push 0x80004003
call fcn.0040d260
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
call fcn.004019e0
mov eax, dword [eax]
cmp edi, eax
je 0x4030c0
cmp eax, ebp
mov esi, edi
mov edi, eax
mov dword [esp + 0x30], edi
je 0x4030b6
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp esi, ebp
je 0x4030c0
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x44]
cmp edi, ebp
setne bl
cmp eax, ebp
je 0x4030d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test bl, bl
je 0x4031d1
cmp edi, ebp
jne 0x4030e9
push 0x80004003
call fcn.0040d260
mov edx, dword [edi]
lea eax, [esp + 0x48]
push eax
push edi
call dword [edx + 0x78]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebp
jge 0x403119
push eax
call fcn.0040d260
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 7
call fcn.004022c0
mov esi, dword [eax]
cmp esi, ebp
mov byte [esp + 0x160], 8
je 0x403152
cmp dword [esi + 4], ebp
jne 0x40314d
mov edx, dword [esi]
push edx
call fcn.0040d440
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x403154
xor esi, esi
push esi
lea ecx, [esp + 0x24]
call fcn.004024f0
mov ecx, dword [esp + 0x28]
cmp ecx, ebp
je 0x40316f
call fcn.00401cc0
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x164], 0xa
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x40318c
push eax
call fcn.0040d260
mov edx, dword [0x41c960]
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, 0x41c958
call fcn.0040ded7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x160], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x403080
cmp edi, ebp
mov byte [esp + 0x160], 5
je 0x4031e3
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
cmp eax, ebp
mov byte [esp + 0x160], 4
je 0x4031fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00401220
lea edx, [esp + 0x2c]
push edx
push ebp
push ebp
push 0x402ce0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
push 4
push 3
push ebp
push ebp
push 0xc0000000
push str..MXGP
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push str.NtCreateSection
push str.ntdll.dll
mov dword [0x41c780], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, eax
push ebp
xor eax, eax
mov ecx, 0x40
mov edi, 0x41c788
rep stosd dword es:[edi], eax
mov eax, dword [edx + 1]
inc edx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [0x41c780]
push pe_nt_image_headers32
lea edx, [esp + 0x64]
push edx
push pe_nt_image_headers32
mov dword [esp + 0x6c], eax
mov eax, edx
push eax
push 0x3e8
push ecx
mov dword [esp + 0x7c], 0x41c788
call esi
mov eax, dword [0x41c780]
push ebp
lea edx, [esp + 0x30]
push edx
push ebp
push ebp
push ebp
push ebp
push 0x3e9
push eax
call esi
mov ecx, dword [ebx]
push ebx
mov byte [esp + 0x164], 3
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov byte [esp + 0x160], 2
pop edi
je 0x4032d1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov byte [esp + 0x15c], 0
je 0x4032e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov dword [esp + 0x15c], 0xffffffff
je 0x403300
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop ebx
mov ecx, dword [esp + 0x150]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x154
ret