Function at 0x40ea60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4926b7
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.0040f200
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
jne 0x40eb32
push 0x4a56b0
mov ecx, ebx
call fcn.00401c30
cmp esi, edi
je 0x40eb17
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.004105a0
push esi
call fcn.0046e08a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40eb2b
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046e08a
add esp, 4
mov eax, ebx
jmp 0x40ef14
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 0x40eb9c
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, 8
mov edi, edi
cmp dword [esi + 0x14], ebx
jb 0x40eb79
mov ecx, dword [esi]
jmp 0x40eb7b
mov ecx, esi
lea edx, [esp + 0x24]
push edx
call fcn.0040f3e0
add esp, 4
add esi, 0x1c
dec edi
jne 0x40eb70
mov ebx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x28]
jne 0x40ebef
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x4a56b0
call fcn.00401c30
test ebx, ebx
je 0x40ebc2
mov edi, dword [esp + 0x28]
mov eax, ebx
call fcn.004105a0
push ebx
call fcn.0046e08a
add esp, 4
test esi, esi
je 0x40ebda
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.004105a0
push esi
call fcn.0046e08a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40ef10
mov eax, dword [esp + 0x48]
push eax
jmp 0x40ef08
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 0x40ec62
mov esi, ebx
mov edi, eax
mov ebx, 8
lea esp, [esp]
cmp dword [esi + 0x14], ebx
jb 0x40ec39
mov ecx, dword [esi]
jmp 0x40ec3b
mov ecx, esi
lea edx, [esp + 0x38]
push edx
call fcn.0040ef40
add esp, 4
add esi, 0x1c
dec edi
jne 0x40ec30
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x40ed19
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0x4a56b0
call fcn.00401c30
test edi, edi
je 0x40ec7d
push edi
call fcn.0046e08a
add esp, 4
test ebx, ebx
je 0x40ecbb
mov edi, dword [esp + 0x28]
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x40ec98
mov eax, dword [esi]
push eax
call fcn.0046e08a
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 0x40ec87
push ebx
call fcn.0046e08a
add esp, 4
cmp dword [esp + 0x14], 0
je 0x40ed04
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x40ece1
mov edx, dword [esi]
push edx
call fcn.0046e08a
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 0x40ecd0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046e08a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40ef10
mov edx, dword [esp + 0x48]
push edx
jmp 0x40ef08
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.00410620
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov word [esp + 0x80], cx
call fcn.00471ba0
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.0040d310
xor eax, eax
test esi, esi
je 0x40edbd
mov bx, word [esp + 0x64]
mov ecx, edi
cmp dword [ecx + 0x14], 8
jb 0x40ed93
mov edx, dword [ecx]
jmp 0x40ed95
mov edx, ecx
cmp word [edx], bx
jne 0x40eda4
inc eax
add ecx, 0x28
cmp eax, esi
jb 0x40ed89
jmp 0x40edb9
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8]
push 0
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.0040d310
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x5c], 8
mov esi, dword [esp + 0x48]
jae 0x40edcc
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 0x40ee18
test esi, 0xffff0000
jne 0x40ee1c
movzx esi, si
push 0
push esi
call fcn.00401690
add esp, 8
test eax, eax
je 0x40ee3b
mov ecx, dword [esp + 0x10]
push esi
push eax
call fcn.00401850
jmp 0x40ee3b
xor eax, eax
jmp 0x40ee30
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ee21
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.00401b30
test edi, edi
je 0x40ee75
mov esi, edi
cmp dword [esi + 0x14], 8
jb 0x40ee52
mov edx, dword [esi]
push edx
call fcn.0046e08a
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 0x40ee41
push edi
call fcn.0046e08a
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40eeba
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x40ee91
mov ecx, dword [esi]
push ecx
call fcn.0046e08a
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 0x40ee80
mov eax, dword [esp + 0x24]
push eax
call fcn.0046e08a
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40eefc
cmp dword [esi + 0x14], 8
jb 0x40eed3
mov ecx, dword [esi]
push ecx
call fcn.0046e08a
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 0x40eec2
mov eax, dword [esp + 0x14]
push eax
call fcn.0046e08a
add esp, 4
cmp dword [esp + 0x5c], 8
jb 0x40ef10
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046e08a
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.0046e095
mov esp, ebp
pop ebp
ret