Function at 0x40f900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492df7
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4c51d0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
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.004100a0
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
jne 0x40f9d2
push 0x4a59e4
mov ecx, ebx
call fcn.00401c40
cmp esi, edi
je 0x40f9b7
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.004113e0
push esi
call fcn.0046e87a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40f9cb
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046e87a
add esp, 4
mov eax, ebx
jmp 0x40fdb4
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 0x40fa3c
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, 8
mov edi, edi
cmp dword [esi + 0x14], ebx
jb 0x40fa19
mov ecx, dword [esi]
jmp 0x40fa1b
mov ecx, esi
lea edx, [esp + 0x24]
push edx
call fcn.00410280
add esp, 4
add esi, 0x1c
dec edi
jne 0x40fa10
mov ebx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x28]
jne 0x40fa8f
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x4a59e4
call fcn.00401c40
test ebx, ebx
je 0x40fa62
mov edi, dword [esp + 0x28]
mov eax, ebx
call fcn.004113e0
push ebx
call fcn.0046e87a
add esp, 4
test esi, esi
je 0x40fa7a
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.004113e0
push esi
call fcn.0046e87a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40fdb0
mov eax, dword [esp + 0x48]
push eax
jmp 0x40fda8
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 0x40fb02
mov esi, ebx
mov edi, eax
mov ebx, 8
lea esp, [esp]
cmp dword [esi + 0x14], ebx
jb 0x40fad9
mov ecx, dword [esi]
jmp 0x40fadb
mov ecx, esi
lea edx, [esp + 0x38]
push edx
call fcn.0040fde0
add esp, 4
add esi, 0x1c
dec edi
jne 0x40fad0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x40fbb9
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0x4a59e4
call fcn.00401c40
test edi, edi
je 0x40fb1d
push edi
call fcn.0046e87a
add esp, 4
test ebx, ebx
je 0x40fb5b
mov edi, dword [esp + 0x28]
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x40fb38
mov eax, dword [esi]
push eax
call fcn.0046e87a
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 0x40fb27
push ebx
call fcn.0046e87a
add esp, 4
cmp dword [esp + 0x14], 0
je 0x40fba4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x40fb81
mov edx, dword [esi]
push edx
call fcn.0046e87a
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 0x40fb70
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046e87a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40fdb0
mov edx, dword [esp + 0x48]
push edx
jmp 0x40fda8
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.00411460
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov word [esp + 0x80], cx
call fcn.00472390
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.0040e1a0
xor eax, eax
test esi, esi
je 0x40fc5d
mov bx, word [esp + 0x64]
mov ecx, edi
cmp dword [ecx + 0x14], 8
jb 0x40fc33
mov edx, dword [ecx]
jmp 0x40fc35
mov edx, ecx
cmp word [edx], bx
jne 0x40fc44
inc eax
add ecx, 0x28
cmp eax, esi
jb 0x40fc29
jmp 0x40fc59
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
push 0
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.0040e1a0
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x5c], 8
mov esi, dword [esp + 0x48]
jae 0x40fc6c
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 0x40fcb8
test esi, 0xffff0000
jne 0x40fcbc
movzx esi, si
push 0
push esi
call fcn.00401690
add esp, 8
test eax, eax
je 0x40fcdb
mov ecx, dword [esp + 0x10]
push esi
push eax
call fcn.00401850
jmp 0x40fcdb
xor eax, eax
jmp 0x40fcd0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fcc1
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.00401b40
test edi, edi
je 0x40fd15
mov esi, edi
cmp dword [esi + 0x14], 8
jb 0x40fcf2
mov edx, dword [esi]
push edx
call fcn.0046e87a
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 0x40fce1
push edi
call fcn.0046e87a
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40fd5a
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x40fd31
mov ecx, dword [esi]
push ecx
call fcn.0046e87a
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 0x40fd20
mov eax, dword [esp + 0x24]
push eax
call fcn.0046e87a
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40fd9c
cmp dword [esi + 0x14], 8
jb 0x40fd73
mov ecx, dword [esi]
push ecx
call fcn.0046e87a
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 0x40fd62
mov eax, dword [esp + 0x14]
push eax
call fcn.0046e87a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40fdb0
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046e87a
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.0046e885
mov esp, ebp
pop ebp
ret