Function at 0x40ec70
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.00436f70
add esp, 0xc
push 0x103
lea edx, [ebp - 0x217]
push 0
push edx
mov byte [ebp - 0x218], 0
call fcn.00436f70
add esp, 0xc
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00436f70
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x420]
call fcn.00410160
push ecx
lea eax, [ebp - 0x420]
mov esi, esp
call fcn.00403290
call fcn.00414540
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 0x40ed32
lea ecx, [ebp - 0x218]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40ed43
mov edx, dword [0x4d5adc]
mov eax, dword [0x4d5ae0]
mov dword [ecx], edx
mov edx, dword [0x4d5ae4]
mov dword [ecx + 4], eax
mov al, byte [0x4d5ae8]
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 0x40ed76
lea ecx, [ebp - 0x110]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40ed87
mov edx, dword [str.gameInfo1.txt]
mov eax, dword [0x4d5af0]
mov dword [ecx], edx
mov edx, dword [0x4d5af4]
mov dword [ecx + 4], eax
mov ax, word [0x4d5af8]
mov dword [ecx + 8], edx
push esi
mov word [ecx + 0xc], ax
call fcn.0042d950
add esp, 4
lea ecx, [ebp - 0x110]
push ecx
lea eax, [ebp - 0x218]
call fcn.0040ebb0
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 0x40edf0
sub eax, esi
push eax
lea edx, [ebp - 0x110]
push edx
call fcn.00402b70
lea esi, [ebp - 0x458]
call fcn.0040e910
cmp dword [ebp - 0x448], 0
mov ebx, 0x10
je 0x40f23c
mov eax, dword [ebp - 0x458]
cmp dword [ebp - 0x444], ebx
jae 0x40ee33
mov eax, esi
push eax
lea edi, [ebp - 0x43c]
call fcn.0040eae0
cmp dword [ebp - 0x42c], 0
je 0x40f225
push 0
lea ecx, [ebp - 0x510]
call fcn.0041cbb0
lea ecx, [ebp - 0x4e0]
call fcn.004236f0
push 1
lea eax, [ebp - 0x510]
push eax
mov ecx, edi
push ecx
lea ecx, [ebp - 0x4e0]
call fcn.004237b0
test al, al
je 0x40f20f
push str.game
push str.data
lea ecx, [ebp - 0x510]
call fcn.0041e120
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041e2f0
test al, al
je 0x40f20f
push str.game
push str.data
lea ecx, [ebp - 0x510]
xor esi, esi
call fcn.0041e120
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041da30
test eax, eax
je 0x40efdc
mov edx, dword [ebp - 0x4ec]
add edx, 0x1a68
mov dword [ebp - 0x4e8], edx
push 0x4d5b04
push esi
push str.game
push str.data
lea ecx, [ebp - 0x510]
call fcn.0041e120
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041dd90
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041d330
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 0x40ef66
test edi, 0xffff0000
jne 0x40ef66
movzx edi, di
call fcn.004030e0
test eax, eax
je 0x40ef79
push eax
mov eax, edi
lea edi, [ebp - 0x4e4]
call fcn.004034a0
jmp 0x40ef73
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 0x40f03c
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40efab
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.0041e120
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041da30
cmp esi, eax
jb 0x40eeed
mov ebx, 0x10
lea edi, [ebp - 0x4e0]
call fcn.0040e880
lea ecx, [ebp - 0x510]
call fcn.0041d0c0
cmp dword [ebp - 0x428], ebx
jb 0x40f009
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0042d950
add esp, 4
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], 0
mov byte [ebp - 0x43c], 0
cmp dword [ebp - 0x444], ebx
jb 0x40f253
mov eax, dword [ebp - 0x458]
push eax
jmp 0x40f24b
push str.name
push esi
push str.game
push str.data
lea ecx, [ebp - 0x510]
mov dword [ebp - 0x4e4], esi
call fcn.0041e120
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041dd90
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041d330
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.0041e120
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041dd90
mov ecx, eax
call fcn.0041e120
mov ecx, eax
call fcn.0041d330
lea esi, [ebp - 0x4e4]
call fcn.00403310
mov edi, dword [ebp - 0x4f4]
lea eax, [ebp - 0x4e8]
call fcn.00403b30
mov edi, dword [ebp - 0x4f0]
mov eax, esi
call fcn.00403b30
mov edi, dword [ebp - 0x4ec]
add edi, 0x24cc
mov eax, esi
call fcn.00403b30
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp - 0x4e8]
je 0x40f13c
mov edx, dword [ebp - 0x4f0]
mov eax, dword [edx]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.00403cb0
add eax, 0x10
mov dword [esi], eax
push ecx
lea eax, [edi - 0x10]
mov esi, esp
call fcn.00403cb0
mov ecx, dword [ebp - 0x4ec]
add eax, 0x10
mov dword [esi], eax
call fcn.0040f270
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 0x40f15e
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 0x40f17a
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 0x40f196
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea edi, [ebp - 0x4e0]
call fcn.0040e880
lea ecx, [ebp - 0x510]
call fcn.0041d0c0
mov esi, 0x10
cmp dword [ebp - 0x428], esi
jb 0x40f1c8
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0042d950
add esp, 4
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], 0
mov byte [ebp - 0x43c], 0
cmp dword [ebp - 0x444], esi
jb 0x40f1fa
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.0042d950
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cf67
mov esp, ebp
pop ebp
ret 8
lea edi, [ebp - 0x4e0]
call fcn.0040e880
lea ecx, [ebp - 0x510]
call fcn.0041d0c0
cmp dword [ebp - 0x428], ebx
jb 0x40f23c
mov ecx, dword [ebp - 0x43c]
push ecx
call fcn.0042d950
add esp, 4
cmp dword [ebp - 0x444], ebx
jb 0x40f253
mov edx, dword [ebp - 0x458]
push edx
call fcn.0042d950
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0042cf67
mov esp, ebp
pop ebp
ret 8