Function at 0x10021180
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1003a91b
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x454]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x464]
xor ebx, ebx
push 0x3fe
lea eax, [esp + 0x52]
push ebx
push eax
mov word [esp + 0x58], bx
call fcn.1002fb20
add esp, 0xc
push 0x400
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea eax, [esp + 0x4c]
mov dword [esp + 0x45c], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10021210
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
lea esi, [esp + 0x1c]
call fcn.100031f0
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x10021251
cmp dword [esp + 0x2c], 8
jb 0x1002124a
mov eax, dword [esp + 0x18]
push eax
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x100213dd
cmp byte [edi + 0x6c], bl
mov word [esp + 0x30], 0x5c
mov word [esp + 0x32], 0x77
mov word [esp + 0x34], 0x69
mov word [esp + 0x36], 0x6e
mov word [esp + 0x38], 0x73
mov word [esp + 0x3a], 0x65
mov word [esp + 0x3c], 0x76
mov word [esp + 0x3e], 0x72
mov word [esp + 0x40], 0x2e
mov word [esp + 0x42], 0x64
mov word [esp + 0x44], 0x61
mov word [esp + 0x46], 0x74
mov word [esp + 0x48], bx
je 0x10021303
lea esi, [eax - 1]
cmp esi, eax
jbe 0x100212bb
call fcn.1002b928
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x100212ca
lea eax, [esp + 0x18]
cmp word [eax + esi*2], 0x5c
je 0x100212e1
push 1
push 0x1003f190
lea ecx, [esp + 0x1c]
call fcn.10003120
lea edx, [edi + 0xee]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100212f0
sub eax, esi
sar eax, 1
push eax
push edx
jmp 0x10021325
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10021310
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10003120
push ebx
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x40]
mov word [ecx + 4], bx
call fcn.10003860
lea ecx, [esp + 0x34]
call fcn.10028120
cmp al, bl
jne 0x1002137d
cmp dword [esp + 0x2c], 8
jb 0x1002124a
mov edx, dword [esp + 0x18]
push edx
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x100213dd
push ebp
lea eax, [esp + 0x14]
push eax
mov ebx, 0x1b0
call fcn.10028620
test al, al
mov eax, dword [esp + 0x10]
jne 0x100213bc
test eax, eax
je 0x100213a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], 8
jb 0x1002124a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x100213dd
test eax, eax
je 0x100213c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], 8
jb 0x100213db
mov edx, dword [esp + 0x18]
push edx
call fcn.1002b322
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.1002b6af
add esp, 0x450
ret 4