Function at 0x4089c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x4f92a0]
xor eax, esp
mov dword [esp + 0x650], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x206
xor ebx, ebx
lea edx, [esp + 0x24e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x38], eax
mov word [esp + 0x254], cx
call fcn.00438230
add esp, 0xc
push 0x206
lea ecx, [esp + 0x456]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x45c], ax
call fcn.00438230
add esp, 0xc
mov eax, 0x4d3b50
lea esi, [esp + 0x18]
call fcn.00403260
cmp dword [0x4fd894], ebx
jne 0x408a61
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x408a5b
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
jmp 0x408a61
mov dword [0x4fd894], ebx
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x408a94
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x248]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x248]
push eax
push str._sGameBuff.lnk
lea edi, [esp + 0x44]
call fcn.00403d60
add esp, 8
cmp dword [0x4fd894], ebx
jne 0x408af0
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x408aea
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
jmp 0x408af0
mov dword [0x4fd894], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x408b0d
lea ecx, [esp + 0x450]
push ecx
push eax
call fcn.0040cfc0
mov eax, dword [0x4fd894]
cmp eax, ebx
jne 0x408b37
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x408b30
mov esi, eax
call fcn.00411220
jmp 0x408b32
xor eax, eax
mov dword [0x4fd894], eax
lea edx, [esp + 0x450]
push edx
lea ecx, [esp + 0x14]
push ecx
call fcn.0040dbe0
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x48c]
cmp ecx, ebx
je 0x408eac
call sym.Setup.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
test al, al
je 0x408eac
push 0x206
lea ecx, [esp + 0x46]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x4c], ax
call fcn.00438230
add esp, 0xc
cmp dword [0x4fd894], ebx
jne 0x408baf
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x408ba9
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
jmp 0x408baf
mov dword [0x4fd894], ebx
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x408eac
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, ebx
je 0x408eac
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
call edx
add eax, 0x10
push ebx
mov dword [esp + 0x28], eax
call fcn.00406900
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
call fcn.0040ea80
test al, al
je 0x408c63
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x24]
call fcn.00403ca0
mov edx, ebx
push edx
mov edx, 0x4d411c
jmp 0x408c6d
lea eax, [esp + 0x1c]
push eax
mov edx, 0x4d412c
call fcn.00403bf0
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x408cba
mov esi, dword [esp + 0x24]
mov edx, str._main
lea edi, [esp + 0x10]
cmp dword [esi - 0xc], eax
jne 0x408c96
call fcn.00403300
jmp 0x408ce6
call fcn.00403300
lea ecx, [esp + 0x10]
push ecx
mov edx, str.__gameid
call fcn.00403bf0
mov edx, dword [esi - 0xc]
push edx
push esi
lea ebx, [esp + 0x18]
call fcn.00403ca0
jmp 0x408ce6
js 0x408cd7
push str._main
push esi
call fcn.00430842
add esp, 8
test eax, eax
je 0x408cd7
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x408ce6
lea eax, [esp + 0x10]
push eax
mov edx, str.__main
call fcn.00403bf0
call fcn.00406900
add eax, 0x820
lea esi, [esp + 0x30]
call fcn.00403260
mov esi, dword [esp + 0x30]
cmp dword [esi - 0xc], 0
jl 0x408d2d
push 0x4d4178
push esi
call fcn.00430842
add esp, 8
test eax, eax
je 0x408d2d
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x408d2d
lea ecx, [esp + 0x10]
push ecx
mov edx, str.__abroadgame
call fcn.00403bf0
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
call fcn.00406900
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [esp + 0x3c]
call fcn.00403d60
mov ebx, dword [esp + 0x20]
mov edi, 1
add esp, 8
cmp dword [ebx - 4], edi
jle 0x408d80
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004035d0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
cmp dword [esi - 4], edi
jle 0x408d9b
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004035d0
mov esi, dword [esp + 0x1c]
call fcn.00406900
push esi
call fcn.00406900
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
add eax, 0xc30
push eax
push edi
lea ecx, [esp + 0x4c]
call fcn.0040ce00
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x408ecf
mov dword [ecx - 0xc], eax
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [esi - 8]
jg 0x408ecf
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x408e50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x408e70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x408e90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x408ee0
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x408ed9
mov esi, eax
call fcn.00411220
jmp 0x408edb
push 0x80070057
call fcn.00403020
xor eax, eax
mov dword [0x4fd894], eax
push eax
call fcn.0040de70
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x490]
test ecx, ecx
je 0x409617
call sym.Setup.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
test al, al
je 0x409617
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
push 0x206
lea edx, [esp + 0x46]
add eax, 0x10
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x34], eax
mov word [esp + 0x4c], cx
call fcn.00438230
add esp, 0xc
cmp dword [0x4fd894], ebx
jne 0x408f6c
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x408f66
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
jmp 0x408f6c
mov dword [0x4fd894], ebx
lea eax, [esp + 0x14]
push eax
push 0x17
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x409011
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, ebx
je 0x409011
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x408fc3
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004035d0
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
push str._s_s
lea edi, [esp + 0x34]
call fcn.00403d60
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 8]
add esp, 0xc
push eax
push esi
call fcn.0042f1b6
add esp, 8
cmp eax, ebx
jl 0x408ecf
cmp eax, dword [esi - 8]
jg 0x408ecf
mov edx, dword [esp + 0x28]
push edx
xor ecx, ecx
mov dword [esi - 0xc], eax
push ebx
mov word [esi + eax*2], cx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fa44c
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, 0x4d3b50
lea esi, [esp + 0x14]
call fcn.00403260
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x409051
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004035d0
mov esi, dword [esp + 0x14]
push esi
lea edx, [esp + 0x44]
push edx
push str._s_s
lea edi, [esp + 0x30]
call fcn.00403d60
mov eax, dword [esi - 8]
add esp, 0xc
push eax
push esi
call fcn.0042f1b6
add esp, 8
cmp eax, ebx
jl 0x408ecf
cmp eax, dword [esi - 8]
jg 0x408ecf
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
mov edx, dword [0x4fa44c]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
mov edx, dword [0x4fa44c]
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [0x4fd894]
cmp eax, ebx
jne 0x4090fe
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x4090f7
mov esi, eax
call fcn.00411220
jmp 0x4090f9
xor eax, eax
mov dword [0x4fd894], eax
push ebx
push eax
lea edx, [esp + 0x38]
lea ecx, [esp + 0x3c]
call fcn.0040ea80
test al, al
je 0x40912d
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x24]
call fcn.00403ca0
mov edx, ebx
push edx
mov edx, 0x4d411c
jmp 0x409137
lea eax, [esp + 0x1c]
push eax
mov edx, 0x4d412c
call fcn.00403bf0
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [esi - 8]
jg 0x408ecf
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4091af
mov esi, dword [esp + 0x30]
mov edx, str._main
lea edi, [esp + 0x10]
cmp dword [esi - 0xc], ecx
jne 0x40918b
call fcn.00403300
jmp 0x4091db
call fcn.00403300
lea edx, [esp + 0x10]
push edx
mov edx, str.__gameid
call fcn.00403bf0
mov eax, dword [esi - 0xc]
push eax
push esi
lea ebx, [esp + 0x18]
call fcn.00403ca0
jmp 0x4091db
js 0x4091cc
push str._main
push esi
call fcn.00430842
add esp, 8
test eax, eax
je 0x4091cc
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4091db
lea ecx, [esp + 0x10]
push ecx
mov edx, str.__main
call fcn.00403bf0
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40921c
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x409215
mov esi, eax
call fcn.00411220
jmp 0x409217
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [esp + 0x34]
call fcn.00403d60
mov ebx, dword [esp + 0x20]
mov esi, 1
add esp, 8
cmp dword [ebx - 4], esi
jle 0x409253
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004035d0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], esi
jle 0x40926a
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004035d0
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], esi
jle 0x409281
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004035d0
mov eax, dword [0x4fd894]
test eax, eax
jne 0x4092ab
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x4092a4
mov esi, eax
call fcn.00411220
jmp 0x4092a6
xor eax, eax
mov dword [0x4fd894], eax
mov edi, eax
test eax, eax
jne 0x4092da
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x4092d0
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
jmp 0x4092da
mov dword [0x4fd894], 0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push esi
add edi, 0xc30
push edi
mov edi, dword [esp + 0x30]
push ecx
mov ecx, edi
call fcn.0040ce00
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [edi - 8]
jg 0x408ecf
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [esi - 8]
jg 0x408ecf
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [ebx - 8]
jg 0x408ecf
mov dword [ebx - 0xc], eax
xor edx, edx
mov word [ebx + eax*2], dx
mov eax, 0x4d41c8
lea esi, [esp + 0x20]
call fcn.00403260
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx - 8]
jg 0x408ecf
xor edx, edx
mov dword [ecx - 0xc], eax
mov word [ecx + eax*2], dx
cmp dword [ebx - 4], 1
jle 0x4093c4
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004035d0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
cmp dword [esi - 4], 1
jle 0x4093e0
mov edx, dword [esi - 0xc]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004035d0
mov esi, dword [esp + 0x20]
cmp dword [edi - 4], 1
jle 0x4093f8
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004035d0
mov edi, dword [esp + 0x28]
mov eax, dword [0x4fd894]
test eax, eax
jne 0x409426
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40941f
mov esi, eax
call fcn.00411220
mov esi, dword [esp + 0x20]
jmp 0x409421
xor eax, eax
mov dword [0x4fd894], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x409453
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40944c
mov esi, eax
call fcn.00411220
mov esi, dword [esp + 0x20]
jmp 0x40944e
xor eax, eax
mov dword [0x4fd894], eax
mov dword [esp + 0x38], eax
test eax, eax
jne 0x409488
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40947e
mov esi, eax
call fcn.00411220
mov esi, dword [esp + 0x20]
mov dword [0x4fd894], eax
jmp 0x409488
mov dword [0x4fd894], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push esi
add eax, 0xe38
add ecx, 0xe38
push eax
push ecx
mov edx, 0x4d3880
mov ecx, edi
call fcn.0040ce00
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [esi - 8]
jg 0x408ecf
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [edi - 8]
jg 0x408ecf
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0042f1b6
add esp, 8
test eax, eax
js 0x408ecf
cmp eax, dword [ebx - 8]
jg 0x408ecf
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40953b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40955b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40957b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40959b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x4095bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4095db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x4095fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409617
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x409641
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40963a
mov esi, eax
call fcn.00411220
jmp 0x40963c
xor eax, eax
mov dword [0x4fd894], eax
mov edi, eax
test eax, eax
jne 0x409668
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x409661
mov esi, eax
call fcn.00411220
jmp 0x409663
xor eax, eax
mov dword [0x4fd894], eax
lea ecx, [edi + 0xe38]
push eax
call fcn.0040c8f0
mov eax, dword [0x4fd894]
test eax, eax
jne 0x4096cb
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x4096b8
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
test eax, eax
jne 0x4096cb
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x4096c4
mov esi, eax
call fcn.00411220
jmp 0x4096c6
mov dword [0x4fd894], 0
jmp 0x40969e
xor eax, eax
mov dword [0x4fd894], eax
mov ebx, eax
test eax, eax
jne 0x4096f2
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x4096eb
mov esi, eax
call fcn.00411220
jmp 0x4096ed
xor eax, eax
mov dword [0x4fd894], eax
mov edi, eax
test eax, eax
jne 0x409721
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x409717
mov esi, eax
call fcn.00411220
mov dword [0x4fd894], eax
jmp 0x409721
mov dword [0x4fd894], 0
lea ecx, [esp + 0x38]
push ecx
push str.SoftwareGameBuff
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x409750
add edi, 0x410
lea eax, [ebx + 0x820]
push edi
lea ebx, [esp + 0x3c]
call fcn.0040cc10
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409770
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x409790
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x4097b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x65c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4