Function at 0x10022363
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062cb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x6c], 0x270c
cmp dword [ebp - 0x6c], 0x6b2
jge 0x10022439
mov dword [ebp - 0xb0], 5
mov dword [ebp - 0xb4], 3
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x4c]
push eax
push str._d__d
call fcn.100494eb
add esp, 0xc
push 5
pop eax
sub eax, dword [ebp - 0x84]
mov dword [ebp - 0x54], eax
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
jmp 0x100223e5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x4c]
jge 0x10022423
lea eax, [ebp - 0x9c]
push eax
push 0x1006aa74
call fcn.100494eb
pop ecx
pop ecx
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x54]
jg 0x10022414
mov dword [ebp - 0x34], 1
jmp 0x10022418
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
jmp 0x100223de
mov eax, dword [ebp - 0x30]
cdq
push 3
pop ecx
idiv ecx
push eax
push 0x1006af60
call fcn.100497ec
pop ecx
pop ecx
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x100226f3
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0x8c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x100225a5
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x38], eax
mov eax, dword [0x1008034c]
and eax, 1
jne 0x100224b7
mov eax, dword [0x1008034c]
or eax, 1
mov dword [0x1008034c], eax
and dword [ebp - 4], 0
mov ecx, 0x100802e8
call fcn.100227bd
push 0x10063802
call fcn.100497c2
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0xb8]
push eax
mov ecx, 0x100802e8
call fcn.10022874
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xbc]
push eax
mov ecx, 0x100802e8
call fcn.10022882
mov ecx, eax
call fcn.10022897
movzx eax, al
test eax, eax
je 0x1002251e
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
mov ecx, 0x100802e8
call fcn.10022b5e
mov ecx, dword [ebp - 0x38]
mov ax, word [eax]
mov word [ecx], ax
jmp 0x10022754
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0xd4]
push eax
call fcn.10021ac0
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xa8]
call fcn.100052b1
mov ax, word [eax]
mov word [ebp - 0x14], ax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.10005275
push 0x100802e8
push 0x3a83
push 1
push 1
push dword [ebp - 0x28]
push 0x5b8b
push 0x6c72
push 0x2feb
lea eax, [ebp - 0x14]
push eax
call fcn.10022254
add esp, 0x24
mov eax, dword [ebp - 0x38]
mov cx, word [ebp - 0x14]
mov word [eax], cx
jmp 0x10022754
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x3c], 0x3a81
mov dword [ebp - 0x44], str.wbk_kna_asrhohu_cfnbvx_tvjucqme_awmy_ujikyobia_rvvm
cmp dword [ebp - 0x3c], 0x3ce3
jle 0x1002268f
and dword [ebp - 0x18], 0
jmp 0x100225d3
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x58b5
jge 0x1002268f
and dword [ebp - 0x20], 0
jmp 0x100225ed
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2b22
jge 0x1002268a
and dword [ebp - 0x24], 0
jmp 0x10022607
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6313
jge 0x10022685
and dword [ebp - 0x1c], 0
jmp 0x1002261d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5c06
jge 0x10022680
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x1c]
and edx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x18]
mov eax, edx
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
lea ecx, [ebp - 0xec]
call fcn.10001a65
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
call fcn.1000511b
push eax
call fcn.100497ec
pop ecx
lea ecx, [ebp - 0xec]
call fcn.10005111
jmp 0x10022616
jmp 0x10022600
jmp 0x100225e6
jmp 0x100225cc
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x100226b2
push 0x59a
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3c], 0x3815
jge 0x100226cb
push dword [ebp - 0x44]
call fcn.100497ec
pop ecx
jmp 0x100226e7
or dword [ebp - 4], 0xffffffff
jmp 0x100226f1
jmp 0x10022754
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x48]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push dword [ebp - 0x88]
push 1
call fcn.1001c0bf
add esp, 0x28
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret