Function at 0x401000
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42adce
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x248]
mov ebp, dword [esp + 0x244]
xor edi, edi
mov dword [esp + 0x23c], edi
mov dword [esp + 0x1c], edi
mov edx, dword [0x43832c]
mov esi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
mov dword [esp + 0x24], ebp
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x23c], 1
mov ecx, dword [esi + 0x5e4]
cmp ecx, edi
jne 0x401090
xor eax, eax
jmp 0x4010a4
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x401095
sub eax, esi
sar eax, 1
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.00401cb0
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.0041a66a
add esp, 8
test eax, eax
jne 0x4010c8
or eax, 0xffffffff
jmp 0x4010cc
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00401840
lea edi, [esp + 0x14]
mov byte [esp + 0x23c], 2
call fcn.00401b40
mov byte [esp + 0x23c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401115
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0x2f
push esi
call fcn.0041a66a
add esp, 8
test eax, eax
jne 0x40112d
or eax, 0xffffffff
jmp 0x401131
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00401840
lea edi, [esp + 0x14]
mov byte [esp + 0x23c], 3
call fcn.00401b40
mov byte [esp + 0x23c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40117a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
push 0x2e
push ebx
call fcn.0041a66a
xor esi, esi
add esp, 8
cmp eax, esi
je 0x4011df
sub eax, ebx
sar eax, 1
js 0x4011df
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00401860
lea edi, [esp + 0x14]
mov byte [esp + 0x23c], 4
call fcn.00401b40
mov byte [esp + 0x23c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40120f
push str.C:_temp_
lea edx, [esp + 0x2c]
push 0x104
push edx
mov word [esp + 0x34], si
call sym.bugreport.exe_wcslcat
add esp, 0xc
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401216
sub eax, edx
sar eax, 1
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x26], cx
je 0x40123e
mov word [esp + eax*2 + 0x28], cx
add eax, 1
mov word [esp + eax*2 + 0x28], si
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x2c]
push eax
call esi
push str.Tencent_
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call sym.bugreport.exe_wcslcat
add esp, 0xc
push 0
lea edx, [esp + 0x2c]
push edx
call esi
push ebx
lea eax, [esp + 0x2c]
push 0x104
push eax
call sym.bugreport.exe_wcslcat
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x43832c
call eax
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x1c], 1
jne 0x4012aa
mov eax, 0x42deb0
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x30]
push ecx
push str._s_x_s
mov edi, ebp
call fcn.00401fd0
mov eax, dword [ebp]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx - 0x10]
mov byte [esp + 0x23c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4012f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0041a2d1
add esp, 0x22c
ret