Function at 0x4242d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446458
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x424338
mov ecx, edi
lea eax, [ebp - 0x1c]
call fcn.00403660
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 8], edi
jge 0x424347
push 0x80070057
call fcn.004036b0
push 1
push 0x1a
push esi
xor eax, eax
mov dword [esi - 0xc], edi
push ebx
mov word [esi + 0x208], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x424364
sub eax, edx
sar eax, 1
js 0x42433d
cmp eax, dword [esi - 8]
jg 0x42433d
push 0x12
push 0x4546d4
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], cx
call fcn.00403a80
mov esi, dword [ebp - 0x1c]
mov eax, 8
push esi
mov word [ebp - 0x40], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x4243bb
cmp esi, ebx
je 0x4243bb
push 0x8007000e
call fcn.00444930
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424f40
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
jne 0x4243e1
push 0x80004003
call fcn.00444930
mov esi, dword [ebp - 0x40]
mov edx, dword [ecx]
lea eax, [ebp - 0x14]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x3c]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x38]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x34]
push ecx
mov ecx, dword [edx + 0xe8]
mov dword [eax + 0xc], esi
call ecx
cmp word [ebp - 0x14], bx
jne 0x424423
push 0x456880
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ebx
call fcn.00433e48
mov dword [ebp - 0x20], ebx
mov bl, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42443c
push 0x80004003
call fcn.00444930
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
lea ecx, [ebp - 0x2c]
push ecx
mov edi, str.StaffcopAgents
call fcn.00422d90
lea edx, [ebp - 0x28]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.00425150
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x2c]
add esp, 0xc
test esi, esi
je 0x4244b4
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4244b4
test esi, esi
je 0x4244b4
mov eax, dword [esi]
test eax, eax
je 0x42449b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4244ab
push eax
call fcn.0042fc1c
add esp, 4
push esi
call fcn.0042d5dd
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4244c5
push 0x80004003
call fcn.00444930
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x100]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x48]
push 0
push 0
push 0x146
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4244fb
mov dword [ebp - 0x30], eax
push 0x456880
lea eax, [ebp - 0x30]
push eax
call fcn.00433e48
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42450e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x424521
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x48]
push 0
push 0
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424567
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4