Function at 0x407d10
Capabilities:
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48d4a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esi + 0x64], eax
lea ecx, [esp + 0x34]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SOFTWARETencentQQPinyin
mov dword [esp + 0x38], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x48], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x408145
mov ebp, dword [esp + 0x34]
lea ebx, [esp + 0x34]
mov dword [esp + 0x18], ebp
call fcn.00405a10
lea edi, [esi + 0x6c]
mov byte [esp + 0x28], 1
call fcn.0040b8a0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407db2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x407dd7
lea ecx, [eax - 1]
test ecx, ecx
jl 0x407e3c
cmp ecx, eax
jg 0x407e3c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x407dd7
push 0x5c
call fcn.00416550
mov eax, dword [esi + 0x74]
lea ebx, [esi + 0x74]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x22
or eax, ecx
mov dword [esp + 0x34], 0x20
jge 0x407e06
mov ecx, 0x22
mov eax, ebx
call fcn.00416110
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x38]
call fcn.00416620
test ebp, ebp
je 0x407e29
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
jne 0x407e5f
mov ebx, dword [ebx]
test ebx, ebx
jne 0x407e46
xor eax, eax
jmp 0x407e63
push 0x80070057
call fcn.00416be0
mov eax, ebx
lea edx, [eax + 2]
jmp 0x407e50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e50
sub eax, edx
sar eax, 1
test eax, eax
jl 0x407e3c
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp + 0x74]
cmp eax, dword [ecx - 8]
jg 0x407e3c
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 0x74]
mov word [edx + eax*2], 0
mov edx, dword [ebp + 0x74]
test edx, edx
jne 0x407e86
xor eax, eax
jmp 0x407ea1
mov eax, edx
lea esi, [eax + 2]
jmp 0x407e90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e90
sub eax, esi
sar eax, 1
js 0x407e3c
cmp eax, dword [edx - 8]
jg 0x407e3c
mov dword [edx - 0xc], eax
mov ecx, dword [ebp + 0x74]
lea edi, [ebp + 0x74]
mov word [ecx + eax*2], 0
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jne 0x407ec7
mov edx, 0x493970
call fcn.00416ac0
lea eax, [esp + 0x34]
push eax
call fcn.00405d00
add esp, 4
add ebp, 0x68
mov edi, ebp
mov byte [esp + 0x28], 2
call fcn.0040b8a0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x407f36
lea ecx, [eax - 1]
test ecx, ecx
jl 0x407e3c
cmp ecx, eax
jg 0x407e3c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x407f36
push 0x5c
call fcn.00416550
mov edx, dword [0x4bb38c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4bb38c
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, ebp
lea edi, [esp + 0x34]
mov byte [esp + 0x28], 3
call fcn.0040b8a0
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push ecx
push 0
call esi
mov edx, edi
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, str.update
call fcn.00409750
mov eax, dword [eax]
add esp, 8
push 0
push eax
push 0
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 5
push str.cdict
lea ecx, [esp + 0x3c]
push ecx
call fcn.004164c0
mov edx, dword [esp + 0x34]
push 0
push edx
push 0
call esi
push 4
push str._tmp
lea eax, [esp + 0x3c]
push eax
call fcn.004164c0
mov edi, dword [esp + 0x34]
push 0
push edi
push 0
call esi
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408005
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], vtable.CSeqIDGenerator.0
mov byte [esp + 0x28], 4
mov esi, dword [esp + 0x30]
lea ebx, [esi + 0x78]
push ebx
call fcn.0043cc20
lea edi, [esi + 0x88]
push edi
mov byte [esp + 0x2c], 0
call fcn.0043dcb0
test al, al
jne 0x408054
push edi
call fcn.0043dd40
test al, al
jne 0x408054
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [edi], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
lea edx, [esp + 0x30]
push ebp
push edx
mov ebx, str.profile.ini
call fcn.00409750
add esp, 8
lea edi, [esi + 0x70]
mov byte [esp + 0x28], 5
call fcn.0040b8a0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408099
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4bb314]
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
push 0
push 0x10
push 0x10
push 1
push 0x7d
push ecx
call edi
mov ebp, dword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, eax
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4080c7
push eax
call ebp
push 0
push 0x20
push 0x20
push 1
mov dword [esi + 0x9c], ebx
mov edx, dword [0x4bb314]
push 0x7d
push edx
call edi
mov edi, eax
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4080ef
push eax
call ebp
mov dword [esi + 0xa0], edi
mov eax, dword [esi + 0x74]
push 0x2e
push eax
xor edi, edi
call fcn.0046acda
add esp, 8
test eax, eax
je 0x408129
add eax, 2
push 0x2e
push eax
call fcn.0046acda
add esp, 8
test eax, eax
je 0x408129
add eax, 2
push eax
call fcn.0046ba35
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esi + 0x98], edi
je 0x40813e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x408147
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8