Function at 0x40a8f0
Capabilities:
Check if file exists
Print debug messages
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45e262
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4754f4]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x58], ebx
xor esi, esi
mov dword [esp + 0x494], esi
call fcn.00410db9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a954
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x494], 1
call fcn.00410db9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40a986
push 0x80004005
call fcn.00402d50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x498], 2
call fcn.00402eb0
mov byte [esp + 0x494], 3
mov dword [esp + 0x38], esi
jmp 0x40a9c0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x49c]
push 0x3b
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00410d34
mov ebp, dword [esp + 0x24]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a9e2
sub eax, edx
cmp eax, 1
jb 0x40b20f
mov ecx, 7
mov esi, str.SOFTWAREGoyooi8deskgidinfo
lea edi, [esp + 0x380]
rep movsd dword es:[edi], dword [esi]
push 0xe6
lea ecx, [esp + 0x3a2]
push 0
push ecx
movsw word es:[edi], word [esi]
call fcn.004314b0
add esp, 0xc
push 0x103
lea edx, [esp + 0x175]
push 0
push edx
mov byte [esp + 0x17c], 0
call fcn.004314b0
add esp, 0xc
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x64]
push edx
push ebp
lea eax, [esp + 0x390]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x74], 1
mov dword [esp + 0x60], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40b1fd
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x494], 4
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x494], 5
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push 0x3b
push 1
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x4a4], 6
call fcn.00410d34
push 0x3b
push 2
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00410d34
push 0x3b
push 3
lea edx, [esp + 0x178]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00410d34
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x494], 7
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x494], 8
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x3d
mov byte [esp + 0x498], 9
mov ecx, dword [esp + 0x30]
push 1
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00410d34
mov eax, dword [esp + 0x3c]
push 0x3d
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00410d34
mov edx, dword [esp + 0x30]
push 0x3d
push 1
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00410d34
mov ecx, dword [esp + 0x20]
push 0x4685a4
push ecx
xor esi, esi
call fcn.0042da2a
add esp, 8
test eax, eax
sete al
test al, al
je 0x40ac68
push 0x103
lea edx, [esp + 0x6d]
push esi
push edx
mov byte [esp + 0x74], 0
call fcn.004314b0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push str._sGameInfo_reg.cfg
lea edx, [esp + 0x70]
call fcn.00402740
add esp, 8
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ac68
push 0x468814
lea esi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x20]
push 0x46876c
push edx
call fcn.0042da2a
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40ac8c
cmp esi, 1
jne 0x40af63
mov eax, dword [str.SOFTWAREGoyooi8desk]
mov edx, dword [0x468778]
mov ecx, dword [0x468774]
mov dword [esp + 0x68], eax
mov eax, dword [0x46877c]
push 0xee
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], ecx
mov ecx, dword [0x468780]
mov dword [esp + 0x74], edx
mov dx, word [0x468784]
lea eax, [esp + 0x82]
push 0
push eax
mov dword [esp + 0x84], ecx
mov word [esp + 0x88], dx
call fcn.004314b0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x27d]
push 0
push ecx
mov byte [esp + 0x284], 0
call fcn.004314b0
add esp, 0xc
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push str.vpartition
lea edx, [esp + 0x78]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40af0a
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x494], 0xa
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x494], 0xb
call fcn.00410db9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a94a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x494], 0xc
xor esi, esi
lea esp, [esp]
push 0x3b
push esi
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00410d34
mov eax, dword [esp + 0x1c]
push 0x3a
push 1
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00410d34
mov edx, dword [esp + 0x1c]
push 0x3a
push 0
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00410d34
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x40b30b
mov edi, dword [esp + 0x28]
mov ecx, dword [edi - 0xc]
mov dl, byte [eax]
cmp ecx, 1
jne 0x40ae33
test ecx, ecx
jl 0x40b30b
cmp byte [edi], dl
je 0x40ae3b
inc esi
cmp esi, 8
jl 0x40add0
jmp 0x40ae92
mov ecx, dword [esp + 0x34]
cmp dword [ecx - 0xc], 0
jl 0x40b30b
mov esi, dword [eax - 0xc]
mov bl, byte [ecx]
test esi, esi
jle 0x40b30b
cmp dword [eax - 4], 1
jle 0x40ae6c
mov ecx, esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402c00
mov eax, dword [esp + 0x18]
mov byte [eax], bl
test esi, esi
jl 0x40b30b
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x40b30b
mov ebx, dword [esp + 0x58]
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x18]
mov byte [esi + edx], 0
mov byte [esp + 0x494], 0xb
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aeba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 0xa
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 9
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40af63
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40af55
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40af55
push eax
call fcn.004028c0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40af4c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40af63
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402da0
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x40af7a
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402c00
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0042e005
add esp, 8
test eax, eax
jl 0x40b30b
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x40b30b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
mov edx, dword [esp + 0x14]
push edx
lea esi, [ebx + 0x61c]
push str._sGameInfo_reg.cfg
mov edx, esi
call fcn.00402740
mov eax, dword [esp + 0x1c]
push eax
push 0x465afc
lea edx, [ebx + 4]
call fcn.00402740
add esp, 0x10
push esi
lea ecx, [esp + 0x50]
call fcn.00402eb0
push eax
lea ecx, [esp + 0x64]
push str.RegCfg____:
push ecx
mov byte [esp + 0x4a0], 0xd
call fcn.004023e0
add esp, 0xc
push 0x465a78
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x4a0], 0xe
call fcn.00402300
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b04b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 0xd
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b073
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 9
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b09b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x48], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b0cd
cmp eax, dword [esi]
jne 0x40b0cd
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b101
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b315
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0042d2a7
add esp, 0x10
add edi, 0x10
push ebx
mov dword [ebp], edi
call fcn.004082e0
mov byte [esp + 0x494], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b135
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b15d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 4
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 0xa
mov dword [esp + 0x38], eax
jl 0x40a9c0
mov ecx, dword [esp + 0x40]
push ecx
push 0x465afc
lea edx, [ebx + 4]
call fcn.00402740
mov edx, dword [esp + 0x48]
push edx
push str._sGameInfo_reg.cfg
lea edx, [ebx + 0x61c]
call fcn.00402740
mov byte [esp + 0x4a4], 2
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 1
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b289
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x494], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x494], 0xffffffff
mov eax, dword [esp + 0x49c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0042d298
add esp, 0x484
ret 4
push 0x80070057
call fcn.00402d50
call fcn.00402c80
int3