Function at 0x4063ba
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, 0x5c
mov eax, dword [0x41429c]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
and dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x13], 1
call fcn.0040674e
mov esi, str.TencentQQEIMSTemp
push esi
mov edi, eax
call fcn.004077a6
pop ecx
mov ebx, eax
push esi
mov eax, edi
call fcn.00405eeb
push eax
lea eax, [esp + 0x30]
call fcn.00405e75
push 1
xor edi, edi
lea esi, [esp + 0x4c]
call fcn.00406099
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x406437
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x40644c
shr eax, 4
and al, 1
jmp 0x40644e
xor al, al
test al, al
jne 0x4064fd
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x406465
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x406476
lea ecx, [esp + 0x2c]
call fcn.004067b7
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x406485
lea eax, [esp + 0x2c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4064fd
push 0x4121a4
lea esi, [esp + 0x4c]
call fcn.00405e9d
lea eax, [esp + 0x2c]
push eax
mov eax, esi
push eax
call fcn.00406898
pop ecx
mov bl, al
pop ecx
neg bl
sbb bl, bl
push 1
xor edi, edi
call fcn.00406099
inc bl
je 0x4064f8
xor eax, eax
push eax
push eax
push 0x412278
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
xor edi, edi
lea esi, [esp + 0x30]
call fcn.00406099
xor eax, eax
inc eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ad9
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x13], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x412288
push 0x6a
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x406747
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov ebx, eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407381
mov edi, eax
pop ecx
lea eax, [ebx + ebx + 2]
push eax
push 0
push edi
mov dword [esp + 0x30], edi
call fcn.00406e60
add esp, 0xc
push ebx
push esi
push edi
call fcn.00406af0
mov ecx, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], 8
jae 0x40658e
lea ecx, [esp + 0x2c]
push ebx
push edi
call fcn.00405a5f
pop ecx
pop ecx
test al, al
jne 0x40666a
cmp byte [esp + 0x13], al
je 0x4065d3
push 0x4121a4
lea esi, [esp + 0x4c]
call fcn.00405e9d
lea eax, [esp + 0x2c]
push eax
mov eax, esi
push eax
mov dword [esp + 0x20], 1
call fcn.00406898
pop ecx
pop ecx
mov byte [esp + 0x13], 1
test al, al
jne 0x4065d8
mov byte [esp + 0x13], 0
test byte [esp + 0x18], 1
je 0x4065f0
push 1
xor edi, edi
lea esi, [esp + 0x4c]
call fcn.00406099
mov edi, dword [esp + 0x24]
cmp byte [esp + 0x13], 0
je 0x406632
cmp dword [esp + 0x40], 8
mov ecx, dword [esp + 0x2c]
jae 0x406606
lea ecx, [esp + 0x2c]
push ebx
push edi
call fcn.00405a5f
pop ecx
pop ecx
test al, al
jne 0x40666a
push edi
call fcn.0040787e
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
push eax
push eax
push 0x412290
jmp 0x4064cd
push edi
call fcn.0040787e
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
push eax
push eax
push 0x412290
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ebx, ebx
inc ebx
push 1
xor edi, edi
lea esi, [esp + 0x30]
call fcn.00406099
mov eax, ebx
jmp 0x4064e4
push edi
call fcn.0040787e
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, 0x4121f4
push esi
call fcn.004077a6
pop ecx
mov ebx, eax
push esi
lea eax, [esp + 0x30]
call fcn.00405eeb
mov esi, str.HummerSetup.dll
push esi
mov edi, eax
call fcn.004077a6
pop ecx
mov ebx, eax
push esi
mov eax, edi
call fcn.00405eeb
cmp dword [eax + 0x14], 8
jb 0x4066b3
mov eax, dword [eax]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4066f4
push str.tWinMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4066ed
push 0x4063a9
push dword [ebp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x34]
push dword [esp + 0x30]
call eax
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0x14]
lea esi, [esp + 0x4c]
call fcn.00405e9d
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x40670e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
push 1
xor edi, edi
lea esi, [esp + 0x4c]
call fcn.00406099
test bl, bl
je 0x406747
push dword [esp + 0x14]
lea esi, [esp + 0x4c]
call fcn.00405e9d
mov ecx, esi
call fcn.004067b7
push 1
call fcn.00406099
xor ebx, ebx
jmp 0x406656