Function at 0x417190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bdd7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x63700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], 0
call fcn.0040be70
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x417456
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x417225
cmp dword [esi + 0x24], eax
je 0x41722f
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x218]
cmp ecx, eax
je 0x417275
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x417247
mov eax, dword [esi + 0x10]
push ecx
lea ecx, [esi + 0x10]
call dword [eax + 0xc]
cmp word [ebp - 0x218], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
je 0x417275
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x10]
call fcn.0041d2e0
mov edi, dword [esi + 0xc]
test edi, edi
je 0x417292
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417281
sub ecx, edx
sar ecx, 1
jmp 0x4172a0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x41734f
shr ecx, 1
dec ecx
test ecx, ecx
jle 0x4172c6
test edi, edi
je 0x4172ac
mov eax, edi
jmp 0x4172ba
cmp dword [esi + 0x24], 0
mov eax, 0x444840
je 0x4172ba
mov eax, dword [esi + 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x417456
test edi, edi
je 0x41734f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4172d3
sub ecx, edx
mov dword [esi + 0x24], 0
sar ecx, 1
lea ebx, [ecx*2 + 2]
cmp dword [esi + 0x20], ebx
jl 0x417330
cmp ebx, 2
jne 0x417308
mov ecx, dword [esi + 0x1c]
mov ax, word [edi]
mov word [ecx], ax
add dword [esi + 0x24], ebx
jmp 0x417348
cmp ebx, 4
jne 0x417319
mov ecx, dword [esi + 0x1c]
mov eax, dword [edi]
mov dword [ecx], eax
add dword [esi + 0x24], ebx
jmp 0x417348
cmp ebx, 8
jne 0x417330
mov ecx, dword [esi + 0x1c]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
add dword [esi + 0x24], ebx
jmp 0x417348
test ebx, ebx
jle 0x417348
push ebx
lea ecx, [esi + 0x10]
call fcn.0041d230
push ebx
push edi
push eax
call fcn.00426420
add esp, 0xc
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0x24]
cmp ebx, 2
jb 0x417368
mov eax, dword [esi + 0x1c]
cmp word [eax + ebx - 2], 0
jne 0x417368
add ebx, 0xfffffffe
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x220], eax
sub eax, ebx
mov dword [ebp - 0x22c], 0x5c
cmp eax, 4
jl 0x417397
mov eax, dword [ebp - 0x22c]
mov dword [ebx + ecx], eax
add dword [esi + 0x24], 4
jmp 0x417456
lea eax, [ebx + 4]
cmp eax, ebx
je 0x41744d
test eax, eax
jne 0x4173d0
test ecx, ecx
je 0x4173b4
mov eax, dword [esi + 0x10]
push ecx
lea ecx, [esi + 0x10]
call dword [eax + 0xc]
mov dword [esi + 0x1c], 0
xor ecx, ecx
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
jmp 0x41744d
test ecx, ecx
jne 0x4173e1
push eax
lea ecx, [esi + 0x10]
call fcn.0041d1d0
mov ecx, eax
jmp 0x41744d
mov edx, dword [esi + 0x28]
test edx, edx
mov dword [ebp - 0x21c], 0x40
cmovle edx, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], edx
cmp dword [esi + 0x20], eax
jl 0x417410
sub dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], edx
jle 0x41744a
cdq
idiv dword [ebp - 0x21c]
lea eax, [ebx + 4]
sub dword [ebp - 0x21c], edx
mov edx, dword [ebp - 0x21c]
add edx, eax
mov eax, dword [esi + 0x10]
push edx
push ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x21c], edx
call dword [eax + 8]
mov ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x20], eax
lea eax, [ebx + 4]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebx + ecx], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424d6b
mov esp, ebp
pop ebp
ret