Function at 0x100220e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e067
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10091018]
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 edi, ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x224], 0
call fcn.10002c10
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 0x100223b5
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x1002217e
mov eax, dword [edi + 0x10]
push ecx
lea ecx, [edi + 0x10]
call dword [eax + 0xc]
cmp word [ebp - 0x218], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
je 0x100221ac
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x10]
call fcn.10042ca0
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x100221d1
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100221c0
sub ecx, edx
sar ecx, 1
jmp 0x100221df
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x1002229c
shr ecx, 1
dec ecx
test ecx, ecx
jle 0x10022205
test ebx, ebx
je 0x100221eb
mov eax, ebx
jmp 0x100221f9
cmp dword [edi + 0x24], 0
mov eax, 0x10080564
je 0x100221f9
mov eax, dword [edi + 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x100223b5
test ebx, ebx
je 0x1002229c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022212
sub ecx, edx
mov dword [edi + 0x24], 0
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x21c], eax
cmp dword [edi + 0x20], eax
jl 0x10022278
cmp eax, 2
jne 0x1002224e
mov ecx, dword [edi + 0x1c]
mov ax, word [ebx]
mov word [ecx], ax
add dword [edi + 0x24], 2
jmp 0x10022295
cmp eax, 4
jne 0x10022260
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebx]
mov dword [ecx], eax
add dword [edi + 0x24], 4
jmp 0x10022295
cmp eax, 8
jne 0x10022278
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [edi + 0x24], 8
jmp 0x10022295
test eax, eax
jle 0x10022295
push eax
lea ecx, [edi + 0x10]
call fcn.10042be0
push dword [ebp - 0x21c]
push ebx
push eax
call fcn.10048e90
add esp, 0xc
mov dword [edi + 0xc], 0
mov ebx, dword [edi + 0x24]
cmp ebx, 2
jb 0x100222b5
mov eax, dword [edi + 0x1c]
cmp word [eax + ebx - 2], 0
jne 0x100222b5
add ebx, 0xfffffffe
mov dword [edi + 0x24], ebx
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x21c], eax
sub eax, ebx
mov dword [ebp - 0x230], 0x5c
cmp eax, 4
jl 0x100222e4
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x230]
mov dword [ebx + ecx], eax
add dword [edi + 0x24], 4
jmp 0x100223b5
mov edx, dword [edi + 0x1c]
lea eax, [ebx + 4]
cmp eax, ebx
je 0x100223ac
mov dword [ebp - 0x220], edx
test eax, eax
jne 0x10022326
test edx, edx
je 0x1002230a
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push edx
call dword [eax + 0xc]
mov dword [edi + 0x1c], 0
xor edx, edx
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
jmp 0x100223ac
mov ecx, dword [edi + 0x28]
test edx, edx
jne 0x10022352
test ecx, ecx
mov edx, 0x40
cmovle ecx, edx
cdq
idiv ecx
lea eax, [ebx + 4]
sub ecx, edx
add ecx, eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x21c], ecx
push ecx
lea ecx, [edi + 0x10]
call dword [eax]
jmp 0x10022398
test ecx, ecx
mov dword [ebp - 0x228], 0x40
cmovle ecx, dword [ebp - 0x228]
cmp dword [edi + 0x20], eax
jl 0x10022378
sub dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], ecx
jle 0x100223a9
cdq
idiv ecx
lea eax, [ebx + 4]
sub ecx, edx
add ecx, eax
mov eax, dword [edi + 0x10]
push ecx
push dword [ebp - 0x220]
mov dword [ebp - 0x21c], ecx
lea ecx, [edi + 0x10]
call dword [eax + 8]
mov ecx, dword [ebp - 0x21c]
mov edx, eax
lea eax, [ebx + 4]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x1c], edx
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x230]
mov dword [edx + ebx], eax
mov eax, edi
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.10046e38
mov esp, ebp
pop ebp
ret