Function at 0x40fee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487d37
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4ba1f0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba1f0]
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.00410680
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
jne 0x40ffb2
push 0x49bc04
mov ecx, ebx
call fcn.00402390
cmp esi, edi
je 0x40ff97
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.00411a20
push esi
call fcn.004657ea
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40ffab
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004657ea
add esp, 4
mov eax, ebx
jmp 0x410394
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 0x41001c
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, 8
mov edi, edi
cmp dword [esi + 0x14], ebx
jb 0x40fff9
mov ecx, dword [esi]
jmp 0x40fffb
mov ecx, esi
lea edx, [esp + 0x24]
push edx
call fcn.00410860
add esp, 4
add esi, 0x1c
dec edi
jne 0x40fff0
mov ebx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x28]
jne 0x41006f
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x49bc04
call fcn.00402390
test ebx, ebx
je 0x410042
mov edi, dword [esp + 0x28]
mov eax, ebx
call fcn.00411a20
push ebx
call fcn.004657ea
add esp, 4
test esi, esi
je 0x41005a
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.00411a20
push esi
call fcn.004657ea
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x410390
mov eax, dword [esp + 0x48]
push eax
jmp 0x410388
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 0x4100e2
mov esi, ebx
mov edi, eax
mov ebx, 8
lea esp, [esp]
cmp dword [esi + 0x14], ebx
jb 0x4100b9
mov ecx, dword [esi]
jmp 0x4100bb
mov ecx, esi
lea edx, [esp + 0x38]
push edx
call fcn.004103c0
add esp, 4
add esi, 0x1c
dec edi
jne 0x4100b0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x410199
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0x49bc04
call fcn.00402390
test edi, edi
je 0x4100fd
push edi
call fcn.004657ea
add esp, 4
test ebx, ebx
je 0x41013b
mov edi, dword [esp + 0x28]
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x410118
mov eax, dword [esi]
push eax
call fcn.004657ea
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 0x410107
push ebx
call fcn.004657ea
add esp, 4
cmp dword [esp + 0x14], 0
je 0x410184
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x410161
mov edx, dword [esi]
push edx
call fcn.004657ea
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 0x410150
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004657ea
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x410390
mov edx, dword [esp + 0x48]
push edx
jmp 0x410388
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.00411aa0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov word [esp + 0x80], cx
call fcn.004690e0
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.00401810
xor eax, eax
test esi, esi
je 0x41023d
mov bx, word [esp + 0x64]
mov ecx, edi
cmp dword [ecx + 0x14], 8
jb 0x410213
mov edx, dword [ecx]
jmp 0x410215
mov edx, ecx
cmp word [edx], bx
jne 0x410224
inc eax
add ecx, 0x28
cmp eax, esi
jb 0x410209
jmp 0x410239
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
push 0
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00401810
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x5c], 8
mov esi, dword [esp + 0x48]
jae 0x41024c
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 0x410298
test esi, 0xffff0000
jne 0x41029c
movzx esi, si
push 0
push esi
call fcn.00401de0
add esp, 8
test eax, eax
je 0x4102bb
mov ecx, dword [esp + 0x10]
push esi
push eax
call fcn.00401fa0
jmp 0x4102bb
xor eax, eax
jmp 0x4102b0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4102a1
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.00402290
test edi, edi
je 0x4102f5
mov esi, edi
cmp dword [esi + 0x14], 8
jb 0x4102d2
mov edx, dword [esi]
push edx
call fcn.004657ea
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 0x4102c1
push edi
call fcn.004657ea
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x41033a
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x410311
mov ecx, dword [esi]
push ecx
call fcn.004657ea
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 0x410300
mov eax, dword [esp + 0x24]
push eax
call fcn.004657ea
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41037c
cmp dword [esi + 0x14], 8
jb 0x410353
mov ecx, dword [esi]
push ecx
call fcn.004657ea
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 0x410342
mov eax, dword [esp + 0x14]
push eax
call fcn.004657ea
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x410390
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004657ea
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.004657f5
mov esp, ebp
pop ebp
ret