Function at 0x4039c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426fed
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x432adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.004079fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403a0a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 0
call fcn.004067a0
call fcn.004079fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403a48
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
call fcn.004079fb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403a78
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.004067a0
push 0
call fcn.004137f2
add esp, 4
push 0x428524
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], edx
call fcn.004073a0
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 3
call fcn.004070e0
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00406f30
add esp, 0xc
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 4
call fcn.004070e0
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403b29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x428534
lea ecx, [ebp - 0x214]
call fcn.00406c50
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
lea ecx, [ebp - 0x21c]
call fcn.00406dc0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.00406e70
add esp, 0xc
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.004070e0
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ba1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x214]
push ecx
push 0x428538
call fcn.00407430
push 0x42853c
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00406f30
add esp, 0x14
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 6
call fcn.004070e0
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x230]
call fcn.004082be
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 7
call fcn.00407230
push 0x200
lea ecx, [ebp - 0x210]
push ecx
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x428540
lea edx, [ebp - 0x210]
push 0x200
push edx
call fcn.00413716
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push 0x3001
push str.Readyshareusb1TSLLogsoutput.txt
lea ecx, [ebp - 0x230]
call fcn.004086bd
test eax, eax
jne 0x403d2f
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00408399
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
jmp 0x403e0a
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x28]
push 2
push 0
push 0
lea ecx, [ebp - 0x230]
call eax
mov esi, dword [ebp - 0x214]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00407ff4
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00408399
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e26
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412803
mov esp, ebp
pop ebp
ret