Function at 0x1003b950
Capabilities:
Check if file exists
Create directory
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f300e
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10136674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1003bcc2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1007bae0
add esp, 0xc
lea eax, [ebp - 0x220]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1003bccc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x1003ba1d
movzx eax, ax
lea ecx, [ebp - 0x224]
push eax
call fcn.10006850
jmp 0x1003ba48
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ba26
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.10007690
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.1003b450
mov edx, dword [ebp - 0x224]
or ebx, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ba88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
push 0x78
push esi
call fcn.10045560
add esp, 8
test eax, eax
je 0x1003bac7
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x22c], edi
call fcn.10007db0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.100465d0
add esp, 4
test eax, eax
jne 0x1003bc2f
push 0x78
call fcn.100458c0
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1003bb2b
push 0x30
push 0x10106fa0
push 0x10106fa8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003bb0b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x16], 0x3a
mov word [ebp - 0x18], ax
call fcn.100087f0
mov ecx, eax
test ecx, ecx
je 0x1003bcd6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x1003bb72
movzx eax, ax
lea ecx, [ebp - 0x224]
push eax
call fcn.10006850
jmp 0x1003bb9f
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003bb80
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.10007690
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], 1
push 0
push eax
call fcn.1003b450
mov esi, dword [ebp - 0x228]
add esp, 0xc
test eax, eax
je 0x1003bbf9
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x234], edi
call fcn.10007db0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.100465d0
add esp, 4
test eax, eax
je 0x1003bbf9
xor bl, bl
jmp 0x1003bbfb
mov bl, 1
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bc20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x1003bc2c
or ebx, 0xffffffff
jmp 0x1003baed
or ebx, 0xffffffff
test esi, esi
je 0x1003baed
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003bc4b
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x230]
mov edx, esi
add ecx, 0x40
lea edi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1003bc60
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.10007690
mov edi, dword [ebp - 0x230]
push 0
push 0
push edi
push 0x1003b130
push 0
push 0
call fcn.1009a63c
add esp, 0x18
mov dword [edi + 0x50], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [edi + 0x50], 0
mov dword [edi + 0x64], eax
je 0x1003baed
test eax, eax
je 0x1003baed
mov edi, 1
jmp 0x1003baef
push 0x80004005
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
int3