Function at 0x40ece0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x4ec], eax
xor eax, eax
push 0x206
mov dword [ebp - 0x4f4], ecx
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov dword [ebp - 0x4f0], edx
mov word [ebp - 0x420], ax
call fcn.00436fe0
add esp, 0xc
push 0x103
lea edx, [ebp - 0x217]
push 0
push edx
mov byte [ebp - 0x218], 0
call fcn.00436fe0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00436fe0
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x420]
call fcn.004101d0
push ecx
lea eax, [ebp - 0x420]
mov esi, esp
call fcn.00403290
call fcn.004145f0
mov esi, eax
lea edx, [ebp - 0x218]
add esp, 4
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40eda2
lea ecx, [ebp - 0x218]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40edb3
mov edx, dword [0x4d5ae8]
mov eax, dword [0x4d5aec]
mov dword [ecx], edx
mov edx, dword [0x4d5af0]
mov dword [ecx + 4], eax
mov al, byte [0x4d5af4]
mov dword [ecx + 8], edx
lea edx, [ebp - 0x110]
mov byte [ecx + 0xc], al
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40ede6
lea ecx, [ebp - 0x110]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40edf7
mov edx, dword [str.gameInfo1.txt]
mov eax, dword [0x4d5afc]
mov dword [ecx], edx
mov edx, dword [0x4d5b00]
mov dword [ecx + 4], eax
mov ax, word [0x4d5b04]
mov dword [ecx + 8], edx
push esi
mov word [ecx + 0xc], ax
call fcn.0042d960
add esp, 4
lea ecx, [ebp - 0x110]
push ecx
lea eax, [ebp - 0x218]
call fcn.0040ec20
sub esp, 0x1c
mov ecx, esp
lea eax, [ebp - 0x110]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ee60
sub eax, esi
push eax
lea edx, [ebp - 0x110]
push edx
call fcn.00402b70
lea esi, [ebp - 0x458]
call fcn.0040e980
cmp dword [ebp - 0x448], 0
mov ebx, 0x10
je 0x40f2ac
mov eax, dword [ebp - 0x458]
cmp dword [ebp - 0x444], ebx
jae 0x40eea3
mov eax, esi
push eax
lea edi, [ebp - 0x43c]
call fcn.0040eb50
cmp dword [ebp - 0x42c], 0
je 0x40f295
push 0
lea ecx, [ebp - 0x510]
call fcn.0041cba0
lea ecx, [ebp - 0x4e0]
call fcn.004236a0
push 1
lea eax, [ebp - 0x510]
push eax
mov ecx, edi
push ecx
lea ecx, [ebp - 0x4e0]
call fcn.00423760
test al, al
je 0x40f27f
push str.game
push str.data
lea ecx, [ebp - 0x510]
call fcn.0041e110
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041e2e0
test al, al
je 0x40f27f
push str.game
push str.data
lea ecx, [ebp - 0x510]
xor esi, esi
call fcn.0041e110
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041da20
test eax, eax
je 0x40f04c
mov edx, dword [ebp - 0x4ec]
add edx, 0x1a68
mov dword [ebp - 0x4e8], edx
push 0x4d5b10
push esi
push str.game
push str.data
lea ecx, [ebp - 0x510]
call fcn.0041e110
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041dd80
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041d320
mov edi, eax
mov eax, dword [0x4fb44c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fb44c
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x4e4], ebx
test edi, edi
je 0x40efd6
test edi, 0xffff0000
jne 0x40efd6
movzx edi, di
call fcn.004030e0
test eax, eax
je 0x40efe9
push eax
mov eax, edi
lea edi, [ebp - 0x4e4]
call fcn.004034a0
jmp 0x40efe3
mov ebx, edi
lea eax, [ebp - 0x4e4]
call fcn.004033c0
mov ebx, dword [ebp - 0x4e4]
mov eax, dword [ebp - 0x4e8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f0ac
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f01b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.game
push str.data
lea ecx, [ebp - 0x510]
inc esi
call fcn.0041e110
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041da20
cmp esi, eax
jb 0x40ef5d
mov ebx, 0x10
lea edi, [ebp - 0x4e0]
call fcn.0040e8f0
lea ecx, [ebp - 0x510]
call fcn.0041d0b0
cmp dword [ebp - 0x428], ebx
jb 0x40f079
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0042d960
add esp, 4
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], 0
mov byte [ebp - 0x43c], 0
cmp dword [ebp - 0x444], ebx
jb 0x40f2c3
mov eax, dword [ebp - 0x458]
push eax
jmp 0x40f2bb
push str.name
push esi
push str.game
push str.data
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x4e4], esi
call fcn.0041e110
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041dd80
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041d320
lea esi, [ebp - 0x4e8]
call fcn.00403310
mov ecx, dword [ebp - 0x4e4]
push str.game_id
push ecx
push str.game
push str.data
lea ecx, [ebp - 0x510]
call fcn.0041e110
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041dd80
mov ecx, eax
call fcn.0041e110
mov ecx, eax
call fcn.0041d320
lea esi, [ebp - 0x4e4]
call fcn.00403310
mov edi, dword [ebp - 0x4f4]
lea eax, [ebp - 0x4e8]
call fcn.00403b20
mov edi, dword [ebp - 0x4f0]
mov eax, esi
call fcn.00403b20
mov edi, dword [ebp - 0x4ec]
add edi, 0x24cc
mov eax, esi
call fcn.00403b20
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp - 0x4e8]
je 0x40f1ac
mov edx, dword [ebp - 0x4f0]
mov eax, dword [edx]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.00403ca0
add eax, 0x10
mov dword [esi], eax
push ecx
lea eax, [edi - 0x10]
mov esi, esp
call fcn.00403ca0
mov ecx, dword [ebp - 0x4ec]
add eax, 0x10
mov dword [esi], eax
call fcn.0040f2e0
mov eax, dword [ebp - 0x4e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1ce
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 0x40f1ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f206
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea edi, [ebp - 0x4e0]
call fcn.0040e8f0
lea ecx, [ebp - 0x510]
call fcn.0041d0b0
mov esi, 0x10
cmp dword [ebp - 0x428], esi
jb 0x40f238
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0042d960
add esp, 4
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], 0
mov byte [ebp - 0x43c], 0
cmp dword [ebp - 0x444], esi
jb 0x40f26a
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.0042d960
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 8
lea edi, [ebp - 0x4e0]
call fcn.0040e8f0
lea ecx, [ebp - 0x510]
call fcn.0041d0b0
cmp dword [ebp - 0x428], ebx
jb 0x40f2ac
mov ecx, dword [ebp - 0x43c]
push ecx
call fcn.0042d960
add esp, 4
cmp dword [ebp - 0x444], ebx
jb 0x40f2c3
mov edx, dword [ebp - 0x458]
push edx
call fcn.0042d960
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 8