Function at 0x408a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x4fb2a0]
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.00438200
add esp, 0xc
push 0x206
lea ecx, [esp + 0x456]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x45c], ax
call fcn.00438200
add esp, 0xc
mov eax, 0x4d5dd0
lea esi, [esp + 0x18]
call fcn.00403290
cmp dword [0x50012c], ebx
jne 0x408aa1
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x408a9b
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x408aa1
mov dword [0x50012c], 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 0x408ad4
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 [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
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.00403db0
add esp, 8
cmp dword [0x50012c], ebx
jne 0x408b30
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x408b2a
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x408b30
mov dword [0x50012c], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x408b4d
lea ecx, [esp + 0x450]
push ecx
push eax
call fcn.0040d080
mov eax, dword [0x50012c]
cmp eax, ebx
jne 0x408b77
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x408b70
mov esi, eax
call fcn.004112e0
jmp 0x408b72
xor eax, eax
mov dword [0x50012c], eax
lea edx, [esp + 0x450]
push edx
lea ecx, [esp + 0x14]
push ecx
call fcn.0040dca0
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x48c]
cmp ecx, ebx
je 0x408ee8
call sym.Setup.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
test al, al
je 0x408ee8
push 0x206
lea ecx, [esp + 0x46]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x4c], ax
call fcn.00438200
add esp, 0xc
cmp dword [0x50012c], ebx
jne 0x408bef
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x408be9
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x408bef
mov dword [0x50012c], 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 0x408ee8
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 0x408ee8
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
call edx
add eax, 0x10
push ebx
mov dword [esp + 0x28], eax
call fcn.00406950
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
call fcn.0040eb40
test al, al
je 0x408ca3
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x24]
call fcn.00403cf0
mov edx, ebx
push edx
mov edx, 0x4d639c
jmp 0x408cad
lea eax, [esp + 0x1c]
push eax
mov edx, 0x4d63ac
call fcn.00403c40
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x408cfa
mov esi, dword [esp + 0x24]
mov edx, str._main
lea edi, [esp + 0x10]
cmp dword [esi - 0xc], eax
jne 0x408cd6
call fcn.00403330
jmp 0x408d26
call fcn.00403330
lea ecx, [esp + 0x10]
push ecx
mov edx, str.__gameid
call fcn.00403c40
mov edx, dword [esi - 0xc]
push edx
push esi
lea ebx, [esp + 0x18]
call fcn.00403cf0
jmp 0x408d26
js 0x408d17
push str._main
push esi
call fcn.00430802
add esp, 8
test eax, eax
je 0x408d17
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x408d26
lea eax, [esp + 0x10]
push eax
mov edx, str.__main
call fcn.00403c40
call fcn.00406950
add eax, 0x820
lea esi, [esp + 0x30]
call fcn.00403290
mov esi, dword [esp + 0x30]
cmp dword [esi - 0xc], 0
jl 0x408d6d
push 0x4d63f8
push esi
call fcn.00430802
add esp, 8
test eax, eax
je 0x408d6d
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x408d6d
lea ecx, [esp + 0x10]
push ecx
mov edx, str.__abroadgame
call fcn.00403c40
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
call fcn.00406950
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [esp + 0x3c]
call fcn.00403db0
mov eax, dword [esp + 0x20]
mov esi, 1
add esp, 8
cmp dword [eax - 4], esi
jle 0x408dbc
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403600
mov edi, dword [esp + 0x1c]
cmp dword [edi - 4], esi
jle 0x408dd7
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403600
mov edi, dword [esp + 0x1c]
call fcn.00406950
push edi
call fcn.00406950
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
add eax, 0xc30
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.0040cec0
mov ecx, ebx
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.0042f176
add esp, 8
test eax, eax
js 0x408f0b
mov ecx, ebx
cmp eax, dword [ecx - 8]
jg 0x408f0b
mov dword [ecx - 0xc], eax
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [edi - 8]
jg 0x408f0b
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408e6c
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 0x408e8c
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 0x408eac
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 0x408ecc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ee8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [0x50012c]
test eax, eax
jne 0x408f1c
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x408f15
mov esi, eax
call fcn.004112e0
jmp 0x408f17
push 0x80070057
call fcn.00403050
xor eax, eax
mov dword [0x50012c], eax
push eax
call fcn.0040df30
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x490]
test ecx, ecx
je 0x409653
call sym.Setup.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
test al, al
je 0x409653
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
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.00438200
add esp, 0xc
cmp dword [0x50012c], ebx
jne 0x408fa8
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x408fa2
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x408fa8
mov dword [0x50012c], 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 0x40904d
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 0x40904d
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x408fff
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403600
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
push str._s_s
lea edi, [esp + 0x34]
call fcn.00403db0
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 8]
add esp, 0xc
push eax
push esi
call fcn.0042f176
add esp, 8
cmp eax, ebx
jl 0x408f0b
cmp eax, dword [esi - 8]
jg 0x408f0b
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 [0x4fc44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc44c
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, 0x4d5dd0
lea esi, [esp + 0x14]
call fcn.00403290
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x40908d
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403600
mov esi, dword [esp + 0x14]
push esi
lea edx, [esp + 0x44]
push edx
push str._s_s
lea edi, [esp + 0x30]
call fcn.00403db0
mov eax, dword [esi - 8]
add esp, 0xc
push eax
push esi
call fcn.0042f176
add esp, 8
cmp eax, ebx
jl 0x408f0b
cmp eax, dword [esi - 8]
jg 0x408f0b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
mov edx, dword [0x4fc44c]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
mov edx, dword [0x4fc44c]
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [0x50012c]
cmp eax, ebx
jne 0x40913a
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x409133
mov esi, eax
call fcn.004112e0
jmp 0x409135
xor eax, eax
mov dword [0x50012c], eax
push ebx
push eax
lea edx, [esp + 0x38]
lea ecx, [esp + 0x3c]
call fcn.0040eb40
test al, al
je 0x409169
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x24]
call fcn.00403cf0
mov edx, ebx
push edx
mov edx, 0x4d639c
jmp 0x409173
lea eax, [esp + 0x1c]
push eax
mov edx, 0x4d63ac
call fcn.00403c40
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [esi - 8]
jg 0x408f0b
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 0x4091eb
mov esi, dword [esp + 0x30]
mov edx, str._main
lea edi, [esp + 0x10]
cmp dword [esi - 0xc], ecx
jne 0x4091c7
call fcn.00403330
jmp 0x409217
call fcn.00403330
lea edx, [esp + 0x10]
push edx
mov edx, str.__gameid
call fcn.00403c40
mov eax, dword [esi - 0xc]
push eax
push esi
lea ebx, [esp + 0x18]
call fcn.00403cf0
jmp 0x409217
js 0x409208
push str._main
push esi
call fcn.00430802
add esp, 8
test eax, eax
je 0x409208
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x409217
lea ecx, [esp + 0x10]
push ecx
mov edx, str.__main
call fcn.00403c40
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x50012c]
test eax, eax
jne 0x409258
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x409251
mov esi, eax
call fcn.004112e0
jmp 0x409253
xor eax, eax
mov dword [0x50012c], eax
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [esp + 0x34]
call fcn.00403db0
mov ebx, dword [esp + 0x20]
mov esi, 1
add esp, 8
cmp dword [ebx - 4], esi
jle 0x40928f
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403600
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], esi
jle 0x4092a6
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403600
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], esi
jle 0x4092bd
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403600
mov eax, dword [0x50012c]
test eax, eax
jne 0x4092e7
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x4092e0
mov esi, eax
call fcn.004112e0
jmp 0x4092e2
xor eax, eax
mov dword [0x50012c], eax
mov edi, eax
test eax, eax
jne 0x409316
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40930c
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x409316
mov dword [0x50012c], 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.0040cec0
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [edi - 8]
jg 0x408f0b
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.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [esi - 8]
jg 0x408f0b
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.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [ebx - 8]
jg 0x408f0b
mov dword [ebx - 0xc], eax
xor edx, edx
mov word [ebx + eax*2], dx
mov eax, 0x4d6448
lea esi, [esp + 0x20]
call fcn.00403290
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.0042f176
add esp, 8
test eax, eax
js 0x408f0b
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx - 8]
jg 0x408f0b
xor edx, edx
mov dword [ecx - 0xc], eax
mov word [ecx + eax*2], dx
cmp dword [ebx - 4], 1
jle 0x409400
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403600
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
cmp dword [esi - 4], 1
jle 0x40941c
mov edx, dword [esi - 0xc]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403600
mov esi, dword [esp + 0x20]
cmp dword [edi - 4], 1
jle 0x409434
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403600
mov edi, dword [esp + 0x28]
mov eax, dword [0x50012c]
test eax, eax
jne 0x409462
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40945b
mov esi, eax
call fcn.004112e0
mov esi, dword [esp + 0x20]
jmp 0x40945d
xor eax, eax
mov dword [0x50012c], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40948f
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x409488
mov esi, eax
call fcn.004112e0
mov esi, dword [esp + 0x20]
jmp 0x40948a
xor eax, eax
mov dword [0x50012c], eax
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4094c4
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x4094ba
mov esi, eax
call fcn.004112e0
mov esi, dword [esp + 0x20]
mov dword [0x50012c], eax
jmp 0x4094c4
mov dword [0x50012c], 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, 0x4d5b00
mov ecx, edi
call fcn.0040cec0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [esi - 8]
jg 0x408f0b
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.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [edi - 8]
jg 0x408f0b
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.0042f176
add esp, 8
test eax, eax
js 0x408f0b
cmp eax, dword [ebx - 8]
jg 0x408f0b
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 0x409577
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 0x409597
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 0x4095b7
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 0x4095d7
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 0x4095f7
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 0x409617
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 0x409637
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 0x409653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x50012c]
test eax, eax
jne 0x40967d
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x409676
mov esi, eax
call fcn.004112e0
jmp 0x409678
xor eax, eax
mov dword [0x50012c], eax
mov edi, eax
test eax, eax
jne 0x4096a4
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40969d
mov esi, eax
call fcn.004112e0
jmp 0x40969f
xor eax, eax
mov dword [0x50012c], eax
lea ecx, [edi + 0xe38]
push eax
call fcn.0040c920
mov ecx, dword [0x50012c]
test ecx, ecx
jne 0x4096de
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x4096d6
mov esi, eax
call fcn.004112e0
mov ecx, eax
jmp 0x4096d8
xor ecx, ecx
mov dword [0x50012c], ecx
mov dword [esp + 0x38], ecx
test ecx, ecx
jne 0x40970a
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x409702
mov esi, eax
call fcn.004112e0
mov ecx, eax
jmp 0x409704
xor ecx, ecx
mov dword [0x50012c], ecx
mov ebx, ecx
test ecx, ecx
jne 0x409734
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40972c
mov esi, eax
call fcn.004112e0
mov ecx, eax
jmp 0x40972e
xor ecx, ecx
mov dword [0x50012c], ecx
mov edi, ecx
test ecx, ecx
jne 0x40975e
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x409756
mov esi, eax
call fcn.004112e0
mov ecx, eax
jmp 0x409758
xor ecx, ecx
mov dword [0x50012c], ecx
mov edx, dword [esp + 0x38]
add edx, 0xa28
push edx
add edi, 0x410
push edi
lea eax, [ebx + 0x820]
push ecx
call fcn.0040cc40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40979c
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 0x4097bc
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 0x4097dc
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.0042e217
mov esp, ebp
pop ebp
ret 4