Function at 0x10021caf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058144
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002206c
lea eax, [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x44], 0x2c47
mov dword [ebp - 0x88], str.ygvbudee_osiax_qcvz_rfrgem_bqbtv_ywcuyjr
cmp dword [ebp - 0x44], 0x3017
jle 0x10021d9a
and dword [ebp - 0x24], 0
jmp 0x10021d20
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x3e26
jge 0x10021d89
and dword [ebp - 0x28], 0
jmp 0x10021d36
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x13ec
jge 0x10021d87
and dword [ebp - 0x2c], 0
jmp 0x10021d4c
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x4318
jge 0x10021d85
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
shl eax, cl
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
mov ecx, 0x100720b8
call fcn.10001c38
jmp 0x10021d45
jmp 0x10021d2f
jmp 0x10021d19
push 0
push 0x668
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x58], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0x2afb
jge 0x10021dbd
mov edx, dword [ebp - 0x88]
mov ecx, 0x100720b8
call fcn.100035ef
jmp 0x10021dd9
or dword [ebp - 4], 0xffffffff
jmp 0x10021de3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x80]
movzx eax, byte [eax]
test eax, eax
je 0x1002203f
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x9c], 0x1d23
cmp dword [ebp - 0x9c], 0x6c8
jge 0x10021fda
mov dword [ebp - 0xc0], 3
lea eax, [ebp - 0x38]
push eax
push 0x100604ac
call fcn.1003ffd2
pop ecx
pop ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0xb0]
call fcn.10022980
mov dword [ebp - 4], 2
and dword [ebp - 0x20], 0
jmp 0x10021e74
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jge 0x10021ea7
lea eax, [ebp - 0x70]
push eax
push 0x100604ac
call fcn.1003ffd2
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0xb0]
call fcn.100229ec
mov ecx, eax
call fcn.1002282a
jmp 0x10021e6d
lea ecx, [ebp - 0xbc]
call fcn.100110d9
mov byte [ebp - 4], 3
and dword [ebp - 0x18], 0
mov byte [ebp - 0x11], 1
and dword [ebp - 0x34], 0
jmp 0x10021ecb
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jge 0x10021f4b
cmp dword [ebp - 0x18], 0
jl 0x10021efd
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb0]
call fcn.100229ec
mov ecx, eax
call fcn.1002281a
test eax, eax
jne 0x10021efd
mov eax, dword [ebp - 0x18]
sub eax, 3
mov dword [ebp - 0x18], eax
jmp 0x10021ed3
cmp dword [ebp - 0x18], 0
jge 0x10021f09
mov byte [ebp - 0x11], 0
jmp 0x10021f4b
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb0]
call fcn.100229ec
mov ecx, eax
call fcn.10022823
push eax
lea ecx, [ebp - 0xbc]
call fcn.1002282a
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb0]
call fcn.100229ec
mov ecx, eax
call fcn.1002287d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x10021ec4
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10021f5c
mov dword [ebp - 0x3c], str.Possible
jmp 0x10021f63
mov dword [ebp - 0x3c], str.Impossible
push dword [ebp - 0x3c]
call fcn.100401a1
pop ecx
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10021fbc
and dword [ebp - 0x30], 0
jmp 0x10021f81
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0xbc]
call fcn.1002281a
cmp dword [ebp - 0x30], eax
jae 0x10021fb1
push dword [ebp - 0x30]
lea ecx, [ebp - 0xbc]
call fcn.10004e0f
mov eax, dword [eax]
inc eax
push eax
push str._ld
call fcn.1003fd76
pop ecx
pop ecx
jmp 0x10021f7a
push 0x1006031d
call fcn.100401a1
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.10004df3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.100229e7
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1002200b
mov ecx, dword [ebp - 0x40]
call fcn.100227c6
movzx eax, al
test eax, eax
jne 0x1002203d
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
call fcn.10022788
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx]
mov dword [eax], ecx
push 1
push 0x2f85
push 1
push 0x8b5
push 0x1cd0
push dword [ebp - 0x48]
push 1
call fcn.10021ac6
add esp, 0x1c
jmp 0x1002206a
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002206a
push 0x19ff
push 0x249e
push 0x1fde
push 0x1733
push 0x705
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
jmp 0x100220c1
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x84]
push 0
push dword [ebp - 0x8c]
call fcn.10016441
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret