Function at 0x407b33
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x422004]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
mov byte [esp + 0xf], 1
call fcn.00407f23
mov esi, eax
mov edi, str.TencentTencentDocsSTemp
cmp word [str.TencentTencentDocsSTemp], bx
jne 0x407b87
xor eax, eax
jmp 0x407b8e
push edi
call fcn.0040e992
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004077e9
push eax
lea ecx, [esp + 0x40]
call fcn.0040762f
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.00407657
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [esp + 0x3c]
push eax
call esi
cmp eax, 0xffffffff
je 0x407bd1
shr eax, 4
and al, 1
jmp 0x407bd3
xor al, al
test al, al
jne 0x407c74
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call esi
cmp eax, 0xffffffff
je 0x407bfa
lea ecx, [esp + 0x3c]
call fcn.00407f9e
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
push 0
cmovae eax, dword [esp + 0x40]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x407c74
and dword [esp + 0x34], ebx
lea ecx, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x38], 7
push 0x4205d0
mov word [esp + 0x28], ax
call fcn.004076ae
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
call fcn.00408078
mov bl, al
lea ecx, [esp + 0x24]
push 0
neg bl
push 1
sbb bl, bl
call fcn.00407657
add bl, 1
je 0x407c6b
xor ebx, ebx
push ebx
push ebx
push 0x420670
jmp 0x407dbf
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x420680
push 0x6a
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x407efd
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov dword [esp + 0x1c], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ecx, ecx
mov eax, dword [esp + 0x14]
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408546
mov edi, eax
mov eax, dword [esp + 0x18]
pop ecx
lea ecx, [eax*2 + 2]
push ecx
push 0
push edi
call fcn.00409830
add esp, 0xc
push dword [esp + 0x14]
push esi
push edi
call fcn.004092b0
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x48]
add esp, 0xc
mov edx, esi
cmp dword [esp + 0x50], 8
mov ecx, edi
cmovae eax, dword [esp + 0x3c]
push eax
call fcn.004071df
pop ecx
test al, al
jne 0x407dce
cmp byte [esp + 0xf], al
je 0x407d67
and dword [esp + 0x34], 0
lea ecx, [esp + 0x24]
xor eax, eax
mov dword [esp + 0x38], 7
push 0x4205d0
mov word [esp + 0x28], ax
call fcn.004076ae
xor ebx, ebx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
inc ebx
call fcn.00408078
test al, al
je 0x407d67
mov byte [esp + 0xf], bl
jmp 0x407d6c
mov byte [esp + 0xf], 0
test bl, 1
je 0x407d81
xor ebx, ebx
lea ecx, [esp + 0x24]
push ebx
push 1
call fcn.00407657
jmp 0x407d83
xor ebx, ebx
cmp byte [esp + 0xf], 0
je 0x407da7
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
mov edx, esi
mov ecx, edi
cmovae eax, dword [esp + 0x3c]
push eax
call fcn.004071df
pop ecx
test al, al
jne 0x407dce
push edi
call fcn.00408509
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push ebx
push 0x420688
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
inc esi
jmp 0x407f01
push edi
call fcn.00408509
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, 0x42057c
push esi
call fcn.0040e992
pop ecx
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.004077e9
cmp word [0x42060c], 0
mov esi, eax
mov edi, 0x42060c
jne 0x407e0b
xor eax, eax
jmp 0x407e12
push edi
call fcn.0040e992
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004077e9
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x407e25
mov esi, dword [esi]
mov ecx, esi
call fcn.004083b6
test eax, eax
je 0x407e71
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x407e82
push str.tWinMain
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407e68
push 1
push 0x407b22
push dword [ebp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x34]
call eax
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x407e82
push 0
push 0
push str._rT9SM
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
and dword [esp + 0x34], 0
lea ecx, [esp + 0x24]
push 7
pop edi
xor eax, eax
mov dword [esp + 0x38], edi
push esi
mov word [esp + 0x28], ax
call fcn.004076ae
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 0x24]
push 0
push 1
setne bl
call fcn.00407657
test bl, bl
je 0x407efd
xor eax, eax
mov dword [esp + 0x38], edi
xor ebx, ebx
mov word [esp + 0x24], ax
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], ebx
call fcn.004076ae
lea ecx, [esp + 0x24]
call fcn.00407f9e
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.00407657
jmp 0x407eff
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.00407657
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004084f8
mov esp, ebp
pop ebp
ret 0x10