Function at 0x407b32
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.00407f20
mov esi, eax
mov edi, str.TencentQQSTemp
cmp word [str.TencentQQSTemp], bx
jne 0x407b86
xor eax, eax
jmp 0x407b8d
push edi
call fcn.0040e992
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004077e8
push eax
lea ecx, [esp + 0x40]
call fcn.0040762e
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.00407656
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 0x407bd0
shr eax, 4
and al, 1
jmp 0x407bd2
xor al, al
test al, al
jne 0x407c73
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call esi
cmp eax, 0xffffffff
je 0x407bf9
lea ecx, [esp + 0x3c]
call fcn.00407f9b
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 0x407c73
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.004076ad
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
call fcn.00408075
mov bl, al
lea ecx, [esp + 0x24]
push 0
neg bl
push 1
sbb bl, bl
call fcn.00407656
add bl, 1
je 0x407c6a
xor ebx, ebx
push ebx
push ebx
push 0x420648
jmp 0x407dbe
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x420658
push 0x6a
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x407efa
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.00408543
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.004071de
pop ecx
test al, al
jne 0x407dcd
cmp byte [esp + 0xf], al
je 0x407d66
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.004076ad
xor ebx, ebx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
inc ebx
call fcn.00408075
test al, al
je 0x407d66
mov byte [esp + 0xf], bl
jmp 0x407d6b
mov byte [esp + 0xf], 0
test bl, 1
je 0x407d80
xor ebx, ebx
lea ecx, [esp + 0x24]
push ebx
push 1
call fcn.00407656
jmp 0x407d82
xor ebx, ebx
cmp byte [esp + 0xf], 0
je 0x407da6
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
mov edx, esi
mov ecx, edi
cmovae eax, dword [esp + 0x3c]
push eax
call fcn.004071de
pop ecx
test al, al
jne 0x407dcd
push edi
call fcn.00408506
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push ebx
push 0x420660
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
inc esi
jmp 0x407efe
push edi
call fcn.00408506
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.004077e8
cmp word [0x4205f8], 0
mov esi, eax
mov edi, 0x4205f8
jne 0x407e0a
xor eax, eax
jmp 0x407e11
push edi
call fcn.0040e992
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004077e8
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x407e24
mov esi, dword [esi]
mov ecx, esi
call fcn.004083b3
test eax, eax
je 0x407e6e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x407e7f
push str.tWinMain
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407e65
push 0x407b21
push dword [ebp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x30]
call eax
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x407e7f
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.004076ad
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.00407656
test bl, bl
je 0x407efa
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.004076ad
lea ecx, [esp + 0x24]
call fcn.00407f9b
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.00407656
jmp 0x407efc
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.00407656
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004084f5
mov esp, ebp
pop ebp
ret 0x10