Function at 0x406c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [str._u]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
mov esi, ecx
mov ecx, dword [ebp + 0x3b0]
push edi
mov edi, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
call dword [0x421520]
mov dword [ebp - 0x74], eax
xor eax, eax
xor ebx, ebx
cmp edi, eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x68], eax
je 0x406d4a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
mov dword [ebp - 0x78], esi
jg 0x406d06
push esi
call fcn.00406560
add esp, 4
test al, al
je 0x406d06
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00413160
mov esi, esp
jmp 0x406d21
add esi, 8
push esi
call fcn.00412bb6
add esp, 4
test eax, eax
je 0x406d48
mov dword [eax], 0
mov ebx, eax
lea esi, [eax + 8]
test esi, esi
je 0x406d48
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
push 0
push 0
push edx
push esi
push 0xffffffffffffffff
push edi
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x406d4a
xor eax, eax
test eax, eax
jne 0x406d7f
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x406d60
lea ecx, [ebp - 0x68]
call fcn.00408390
test ebx, ebx
je 0x406d75
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00411d71
add esp, 4
test ebx, ebx
jne 0x406d64
mov eax, 0x8007000e
jmp 0x406e73
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x74], esi
jne 0x406d9f
call fcn.00406660
mov edi, eax
jmp 0x406e43
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x406dbb
call fcn.00406660
jmp 0x406e3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x70], eax
jne 0x406dd1
call fcn.00406660
jmp 0x406e3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, 0x400
mov dword [ebp - 0x6c], edi
jbe 0x406dff
push eax
lea ecx, [ebp - 0x68]
call fcn.004083d0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x406e05
mov edi, 0x8007000e
jmp 0x406e3c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x70]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0x3b4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x68]
push edx
push eax
lea ecx, [ebp - 0x80]
call fcn.00406ea0
mov esi, dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x406e55
lea ecx, [ebp - 0x68]
call fcn.00408390
test ebx, ebx
je 0x406e71
lea esp, [esp]
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00411d71
add esp, 4
test ebx, ebx
jne 0x406e60
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.0041277f
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret 0x10