Function at 0x401a50
Capabilities:
Create process on windows
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x474c17
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x48d034]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 0x684]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x694]
xor ebx, ebx
mov dword [esp + 0x434], 7
mov dword [esp + 0x430], ebx
mov word [esp + 0x420], bx
lea eax, [ebp + 0x1c]
push 0x2714
mov dword [esp + 0x690], ebx
call fcn.00428840
cmp eax, ebx
je 0x401b19
mov edx, dword [eax]
mov edx, dword [edx + 0x13c]
lea ecx, [esp + 0x98]
push ecx
mov ecx, eax
call edx
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x428]
mov byte [esp + 0x698], 1
call fcn.00403490
mov edi, 8
mov byte [esp + 0x68c], bl
cmp dword [esp + 0xb0], edi
jb 0x401b1e
mov eax, dword [esp + 0x9c]
push eax
call fcn.0045ca7a
add esp, 4
jmp 0x401b1e
mov edi, 8
cmp dword [esp + 0x430], ebx
jne 0x401b41
cmp dword [esp + 0x434], edi
jb 0x402050
mov ecx, dword [esp + 0x420]
push ecx
jmp 0x402048
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebx
push str.softwareGMUnpacker
push SysReAllocString
mov byte [esp + 0x6a0], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x401b8a
cmp eax, 2
mov dword [esp + 0x1c], eax
jne 0x401e5a
lea esi, [esp + 0x18]
call fcn.0040ab90
cmp al, bl
je 0x401bd7
cmp dword [esp + 0x434], edi
mov edx, dword [esp + 0x420]
jae 0x401ba1
lea edx, [esp + 0x420]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ba6
mov ecx, dword [esp + 0x18]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
push 1
push ebx
push str.LastDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
je 0x401bd7
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1b4]
mov eax, dword [eax]
cmp eax, ebx
je 0x401bea
mov dl, byte [eax + 8]
test dl, dl
jne 0x401bf5
mov eax, dword [ebp + 0x1b4]
call fcn.00409110
lea eax, [esp + 0x41c]
push eax
push ebp
lea ecx, [esp + 0x494]
push ecx
call fcn.00405370
lea edi, [esp + 0x48c]
mov byte [esp + 0x68c], 3
call fcn.0042d440
lea edi, [ebp + 0x198]
lea edx, [esp + 0x24]
mov eax, edi
mov dword [esp + 0x24], 1
call fcn.004032b0
mov eax, dword [eax + 4]
mov ecx, eax
mov dword [esp + 0x450], 7
mov dword [esp + 0x44c], ebx
mov word [esp + 0x43c], bx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x401c60
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x440]
call fcn.00403990
mov byte [esp + 0x68c], 4
cmp dword [esp + 0x674], ebx
je 0x401e63
push 0x2717
lea eax, [ebp + 0x1c]
call fcn.00428840
cmp dword [esp + 0x430], ebx
je 0x401d77
cmp eax, ebx
je 0x401d77
cmp byte [eax + 0x3f0], bl
je 0x401d77
lea edx, [esp + 0x20]
mov eax, edi
mov dword [esp + 0x20], 4
call fcn.004032b0
mov edx, dword [eax + 4]
lea eax, [esp + 0x470]
call fcn.00403240
mov byte [esp + 0x68c], 5
cmp dword [esp + 0x484], ebx
je 0x401d57
lea edx, [esp + 0x41c]
push 0x47815c
push edx
lea esi, [esp + 0xbc]
call fcn.004043b0
lea ecx, [esp + 0x478]
push ecx
push eax
lea edi, [esp + 0xe0]
mov byte [esp + 0x69c], 6
call fcn.00404470
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x47c]
mov byte [esp + 0x698], 7
call fcn.00403490
mov esi, edi
call fcn.00401230
lea esi, [esp + 0xb4]
call fcn.00401230
lea eax, [esp + 0x470]
call fcn.00402d20
lea esi, [esp + 0x470]
mov byte [esp + 0x68c], 4
call fcn.00401230
push 5
push 0x478170
lea esi, [esp + 0x4c]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
call fcn.00403990
lea edx, [esp + 0x438]
push 0x478160
push edx
lea esi, [esp + 0x68]
mov byte [esp + 0x694], 8
call fcn.004043b0
add esp, 8
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x690], 9
mov edi, dword [ebp + 4]
push eax
lea esi, [esp + 0x28c]
call fcn.00404870
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x401dee
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0045ca7a
add esp, 4
mov edi, 7
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov byte [esp + 0x68c], 0xc
cmp dword [esp + 0x5c], esi
jb 0x401e1b
mov edx, dword [esp + 0x48]
push edx
call fcn.0045ca7a
add esp, 4
mov dword [esp + 0x5c], edi
lea edi, [esp + 0x284]
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.0042d440
mov byte [esp + 0x68c], 4
mov eax, edi
mov dword [esp + method.GameMgr::GMMainWnd.virtual_0], vtable.GameMgr::GMMessageDlg.0
mov dword [esp + method.GameMgr::GMMessageDlg.1.virtual_0], vtable.GameMgr::GMMessageDlg.1.0
push eax
jmp 0x401f53
mov dword [esp + 0x18], ebx
jmp 0x401bd7
push 5
push 0x47818c
lea esi, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
call fcn.00403990
lea ecx, [esp + 0x438]
push 0x47817c
push ecx
lea esi, [esp + 0x84]
mov byte [esp + 0x694], 0xd
call fcn.004043b0
add esp, 8
push eax
lea edx, [esp + 0x2c]
mov byte [esp + 0x690], 0xe
mov edi, dword [ebp + 4]
push edx
lea esi, [esp + 0xf4]
call fcn.00404870
mov esi, 8
cmp dword [esp + 0x94], esi
jb 0x401ee3
mov eax, dword [esp + 0x80]
push eax
call fcn.0045ca7a
add esp, 4
mov edi, 7
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov byte [esp + 0x68c], 0x11
cmp dword [esp + 0x40], esi
jb 0x401f19
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0045ca7a
add esp, 4
mov dword [esp + 0x40], edi
lea edi, [esp + 0xec]
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.0042d440
mov byte [esp + 0x68c], 4
mov edx, edi
mov dword [esp + 0xec], vtable.GameMgr::GMMessageDlg.0
mov dword [esp + method.GameMgr::GMMessageDlg.1.virtual_0], vtable.GameMgr::GMMessageDlg.1.0
push edx
call fcn.0042d6a0
lea esi, [esp + 0x454]
call fcn.00401480
mov byte [esp + 0x68c], 0x12
cmp dword [esp + 0x468], ebx
mov edi, 8
je 0x401fa2
cmp dword [esp + 0x46c], edi
mov eax, dword [esp + 0x458]
jae 0x401f91
lea eax, [esp + 0x458]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
cmp dword [esp + 0x46c], edi
jb 0x401fc5
mov eax, dword [esp + 0x458]
push eax
call fcn.0045ca7a
add esp, 4
cmp dword [esp + 0x450], edi
mov esi, 7
mov dword [esp + 0x46c], esi
mov dword [esp + 0x468], ebx
mov word [esp + 0x458], bx
jb 0x401ff9
mov ecx, dword [esp + 0x43c]
push ecx
call fcn.0045ca7a
add esp, 4
lea edx, [esp + 0x48c]
push edx
mov dword [esp + 0x454], esi
mov dword [esp + 0x450], ebx
mov word [esp + 0x440], bx
mov byte [esp + 0x690], 2
call fcn.00405530
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402037
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x434], edi
jb 0x402050
mov eax, dword [esp + 0x420]
push eax
call fcn.0045ca7a
add esp, 4
mov ecx, dword [esp + 0x684]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0045ca6b
add esp, 0x67c
ret 4