Function at 0x413c40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x489cb1
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4b47a8]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b47a8]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [esp + 0x140]
test eax, eax
mov ebp, dword [esp + 0x144]
mov esi, ecx
mov dword [ebp], 0
je 0x413ca4
cmp eax, 1
je 0x413ca4
cmp eax, 2
jne 0x413f7d
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413cbe
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x13c], 0
call fcn.00406820
push 1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040a000
mov eax, dword [eax]
push 0x494a8c
push eax
call fcn.00469714
add esp, 8
test eax, eax
mov byte [esp + 0x138], 0
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413d30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x413d44
push 1
push 0x494a8c
lea ecx, [esp + 0x24]
call fcn.0040a140
call fcn.0044d630
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413d5e
push 0x80004005
call fcn.00401db0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x105
lea ecx, [esp + 0x28]
push 0
push ecx
mov byte [esp + 0x144], 2
call fcn.0046c870
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413da1
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.004068a0
push 1
push 0x494a8c
lea ecx, [esp + 0x1c]
call fcn.0040a140
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push esi
push edi
mov dword [ebp], 1
call fcn.00469941
add esp, 8
test eax, eax
jne 0x413e3a
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x138], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413e0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413e33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x413f82
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413e51
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
call fcn.004068a0
push 1
push 0x494a8c
lea ecx, [esp + 0x1c]
call fcn.0040a140
mov ebx, dword [esp + 0x14]
push ebx
push edi
mov dword [ebp], 2
call fcn.00469941
add esp, 8
test eax, eax
jne 0x413e9c
lea eax, [ebx - 0x10]
jmp 0x413deb
lea esi, [esp + 0x20]
mov dword [ebp], 3
call fcn.00413ae0
mov eax, dword [eax]
test eax, eax
jne 0x413eb7
or eax, 0xffffffff
jmp 0x413ed7
cmp dword [edi - 0xc], 0
jge 0x413ec2
or eax, 0xffffffff
jmp 0x413ed7
push eax
push edi
call fcn.0046a65b
add esp, 8
test eax, eax
jne 0x413ed5
or eax, 0xffffffff
jmp 0x413ed7
sub eax, edi
or esi, 0xffffffff
cmp eax, esi
mov eax, dword [esp + 0x20]
setne byte [esp + 0x1b]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
lea eax, [ebx - 0x10]
mov byte [esp + 0x138], 0
mov edx, esi
lea ecx, [eax + 0xc]
je 0x413f43
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x138], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x413e27
mov dword [ebp], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x138], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x413f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00468ce5
add esp, 0x128
ret