Function at 0x40b620
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4784c1
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4a9128]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x140]
test eax, eax
mov ebp, dword [esp + 0x144]
mov esi, dword [esp + 0x13c]
mov dword [ebp], 0
je 0x40b689
cmp eax, 1
je 0x40b689
cmp eax, 2
jne 0x40b93c
call fcn.00434e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b6a3
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x138], 0
call fcn.00401b60
push 1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404c10
mov eax, dword [eax]
push 0x481d20
push eax
call fcn.0045d792
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
mov byte [esp + 0x134], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b729
push 1
push 0x481d20
lea ecx, [esp + 0x20]
call fcn.00404fd0
call fcn.00434e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b743
push 0x80004005
call fcn.00401000
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 + 0x24]
push 0
push ecx
mov byte [esp + 0x140], 2
call fcn.0045d2b0
add esp, 0xc
push 0x104
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b786
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401910
push 1
push 0x481d20
lea ecx, [esp + 0x1c]
call fcn.00404fd0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push edi
push esi
mov dword [ebp], 1
call fcn.0045c990
add esp, 8
test eax, eax
jne 0x40b81f
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x134], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b818
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b941
push 0x104
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b836
sub eax, edx
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401910
push 1
push 0x481d20
lea ecx, [esp + 0x1c]
call fcn.00404fd0
mov edi, dword [esp + 0x14]
push edi
push esi
mov dword [ebp], 2
call fcn.0045c990
add esp, 8
test eax, eax
je 0x40b7cd
lea ecx, [esp + 0x1c]
push ecx
mov dword [ebp], 3
call fcn.0040b0d0
mov eax, dword [eax]
add esp, 4
test eax, eax
jne 0x40b89c
or eax, 0xffffffff
jmp 0x40b8bc
cmp dword [esi - 0xc], 0
jge 0x40b8a7
or eax, 0xffffffff
jmp 0x40b8bc
push eax
push esi
call fcn.0045e0fc
add esp, 8
test eax, eax
jne 0x40b8ba
or eax, 0xffffffff
jmp 0x40b8bc
sub eax, esi
cmp eax, 0xffffffff
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b8e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
test bl, bl
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
jne 0x40b7de
mov dword [ebp], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b93c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0045d22c
add esp, 0x124
ret