Function at 0x407835
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 [0x41729c]
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.00407be9
mov esi, str.TencentQQSTemp
push esi
mov edi, eax
call fcn.00408e96
pop ecx
mov ebx, eax
push esi
mov eax, edi
call fcn.00407366
push eax
lea eax, [esp + 0x30]
call fcn.004072f0
push 1
xor edi, edi
lea esi, [esp + 0x4c]
call fcn.00407514
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4078b2
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x4078c7
shr eax, 4
and al, 1
jmp 0x4078c9
xor al, al
test al, al
jne 0x407978
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4078e0
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x4078f1
lea ecx, [esp + 0x2c]
call fcn.00407c52
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x407900
lea eax, [esp + 0x2c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x407978
push 0x4151a4
lea esi, [esp + 0x4c]
call fcn.00407318
lea eax, [esp + 0x2c]
push eax
mov eax, esi
push eax
call fcn.00407d33
pop ecx
mov bl, al
pop ecx
neg bl
sbb bl, bl
push 1
xor edi, edi
call fcn.00407514
inc bl
je 0x407973
xor eax, eax
push eax
push eax
push 0x415270
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
xor edi, edi
lea esi, [esp + 0x30]
call fcn.00407514
xor eax, eax
inc eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004081ce
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x13], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x415280
push 0x6a
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x407be2
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.00408a71
mov edi, eax
pop ecx
lea eax, [ebx + ebx + 2]
push eax
push 0
push edi
mov dword [esp + 0x30], edi
call fcn.00408550
add esp, 0xc
push ebx
push esi
push edi
call fcn.004081e0
mov ecx, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], 8
jae 0x407a09
lea ecx, [esp + 0x2c]
push ebx
push edi
call fcn.00406eda
pop ecx
pop ecx
test al, al
jne 0x407ae5
cmp byte [esp + 0x13], al
je 0x407a4e
push 0x4151a4
lea esi, [esp + 0x4c]
call fcn.00407318
lea eax, [esp + 0x2c]
push eax
mov eax, esi
push eax
mov dword [esp + 0x20], 1
call fcn.00407d33
pop ecx
pop ecx
mov byte [esp + 0x13], 1
test al, al
jne 0x407a53
mov byte [esp + 0x13], 0
test byte [esp + 0x18], 1
je 0x407a6b
push 1
xor edi, edi
lea esi, [esp + 0x4c]
call fcn.00407514
mov edi, dword [esp + 0x24]
cmp byte [esp + 0x13], 0
je 0x407aad
cmp dword [esp + 0x40], 8
mov ecx, dword [esp + 0x2c]
jae 0x407a81
lea ecx, [esp + 0x2c]
push ebx
push edi
call fcn.00406eda
pop ecx
pop ecx
test al, al
jne 0x407ae5
push edi
call fcn.00408f6e
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
push eax
push eax
push 0x415288
jmp 0x407948
push edi
call fcn.00408f6e
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
push eax
push eax
push 0x415288
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.00407514
mov eax, ebx
jmp 0x40795f
push edi
call fcn.00408f6e
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, 0x4151f4
push esi
call fcn.00408e96
pop ecx
mov ebx, eax
push esi
lea eax, [esp + 0x30]
call fcn.00407366
mov esi, str.HummerSetup.dll
push esi
mov edi, eax
call fcn.00408e96
pop ecx
mov ebx, eax
push esi
mov eax, edi
call fcn.00407366
cmp dword [eax + 0x14], 8
jb 0x407b2e
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.00408077
test eax, eax
je 0x407b7f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x407b8f
push str.tWinMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407b76
push 0x407824
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]
jmp 0x407b8f
xor eax, eax
push eax
push eax
push str._rT9SM
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [esp + 0x14]
lea esi, [esp + 0x4c]
call fcn.00407318
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x407ba9
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.00407514
test bl, bl
je 0x407be2
push dword [esp + 0x14]
lea esi, [esp + 0x4c]
call fcn.00407318
mov ecx, esi
call fcn.00407c52
push 1
call fcn.00407514
xor ebx, ebx
jmp 0x407ad1