Function at 0x40f770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490bb7
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4c31d0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4c31d0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x34], edi
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
mov dword [esp + 0x280], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 1
call fcn.0040ff10
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
jne 0x40f842
push 0x4a39e4
mov ecx, ebx
call fcn.00401c40
cmp esi, edi
je 0x40f827
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.00411250
push esi
call fcn.0046ca7a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40f83b
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046ca7a
add esp, 4
mov eax, ebx
jmp 0x40fc24
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x280], 2
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f8ac
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, 8
mov edi, edi
cmp dword [esi + 0x14], ebx
jb 0x40f889
mov ecx, dword [esi]
jmp 0x40f88b
mov ecx, esi
lea edx, [esp + 0x24]
push edx
call fcn.004100f0
add esp, 4
add esi, 0x1c
dec edi
jne 0x40f880
mov ebx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x28]
jne 0x40f8ff
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x4a39e4
call fcn.00401c40
test ebx, ebx
je 0x40f8d2
mov edi, dword [esp + 0x28]
mov eax, ebx
call fcn.00411250
push ebx
call fcn.0046ca7a
add esp, 4
test esi, esi
je 0x40f8ea
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.00411250
push esi
call fcn.0046ca7a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40fc20
mov eax, dword [esp + 0x48]
push eax
jmp 0x40fc18
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x280], 3
mov ecx, dword [esp + 0x28]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f972
mov esi, ebx
mov edi, eax
mov ebx, 8
lea esp, [esp]
cmp dword [esi + 0x14], ebx
jb 0x40f949
mov ecx, dword [esi]
jmp 0x40f94b
mov ecx, esi
lea edx, [esp + 0x38]
push edx
call fcn.0040fc50
add esp, 4
add esi, 0x1c
dec edi
jne 0x40f940
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x40fa29
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0x4a39e4
call fcn.00401c40
test edi, edi
je 0x40f98d
push edi
call fcn.0046ca7a
add esp, 4
test ebx, ebx
je 0x40f9cb
mov edi, dword [esp + 0x28]
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x40f9a8
mov eax, dword [esi]
push eax
call fcn.0046ca7a
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x40f997
push ebx
call fcn.0046ca7a
add esp, 4
cmp dword [esp + 0x14], 0
je 0x40fa14
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x40f9f1
mov edx, dword [esi]
push edx
call fcn.0046ca7a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
add esi, 0x1c
cmp esi, edi
jne 0x40f9e0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046ca7a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40fc20
mov edx, dword [esp + 0x48]
push edx
jmp 0x40fc18
mov ecx, ebx
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov esi, edx
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x34]
push eax
shr esi, 0x1f
add esi, edx
push esi
push ebx
push edi
call fcn.004112d0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov word [esp + 0x80], cx
call fcn.00470590
add esp, 0x1c
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push edi
or eax, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.0040e010
xor eax, eax
test esi, esi
je 0x40facd
mov bx, word [esp + 0x64]
mov ecx, edi
cmp dword [ecx + 0x14], 8
jb 0x40faa3
mov edx, dword [ecx]
jmp 0x40faa5
mov edx, ecx
cmp word [edx], bx
jne 0x40fab4
inc eax
add ecx, 0x28
cmp eax, esi
jb 0x40fa99
jmp 0x40fac9
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
push 0
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.0040e010
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x5c], 8
mov esi, dword [esp + 0x48]
jae 0x40fadc
lea esi, [esp + 0x48]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
mov ecx, dword [esp + 0x10]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x280], 4
test esi, esi
je 0x40fb28
test esi, 0xffff0000
jne 0x40fb2c
movzx esi, si
push 0
push esi
call fcn.00401690
add esp, 8
test eax, eax
je 0x40fb4b
mov ecx, dword [esp + 0x10]
push esi
push eax
call fcn.00401850
jmp 0x40fb4b
xor eax, eax
jmp 0x40fb40
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fb31
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.00401b40
test edi, edi
je 0x40fb85
mov esi, edi
cmp dword [esi + 0x14], 8
jb 0x40fb62
mov edx, dword [esi]
push edx
call fcn.0046ca7a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x28
cmp esi, ebx
jne 0x40fb51
push edi
call fcn.0046ca7a
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40fbca
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x40fba1
mov ecx, dword [esi]
push ecx
call fcn.0046ca7a
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x28]
jne 0x40fb90
mov eax, dword [esp + 0x24]
push eax
call fcn.0046ca7a
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40fc0c
cmp dword [esi + 0x14], 8
jb 0x40fbe3
mov ecx, dword [esi]
push ecx
call fcn.0046ca7a
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x40fbd2
mov eax, dword [esp + 0x14]
push eax
call fcn.0046ca7a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40fc20
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046ca7a
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046ca85
mov esp, ebp
pop ebp
ret