Function at 0x408850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42482c]
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 [0x424550]
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 0x40891a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
mov dword [ebp - 0x78], esi
jg 0x4088d6
push esi
call fcn.004081b0
add esp, 4
test al, al
je 0x4088d6
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00414ee0
mov esi, esp
jmp 0x4088f1
add esi, 8
push esi
call fcn.00414936
add esp, 4
test eax, eax
je 0x408918
mov dword [eax], 0
mov ebx, eax
lea esi, [eax + 8]
test esi, esi
je 0x408918
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 0x40891a
xor eax, eax
test eax, eax
jne 0x40894f
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x408930
lea ecx, [ebp - 0x68]
call fcn.00409f60
test ebx, ebx
je 0x408945
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00413af1
add esp, 4
test ebx, ebx
jne 0x408934
mov eax, 0x8007000e
jmp 0x408a43
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 0x40896f
call fcn.004082b0
mov edi, eax
jmp 0x408a13
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 0x40898b
call fcn.004082b0
jmp 0x408a0a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x70], eax
jne 0x4089a1
call fcn.004082b0
jmp 0x408a0a
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 0x4089cf
push eax
lea ecx, [ebp - 0x68]
call fcn.00409fa0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x4089d5
mov edi, 0x8007000e
jmp 0x408a0c
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.00408a70
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 0x408a25
lea ecx, [ebp - 0x68]
call fcn.00409f60
test ebx, ebx
je 0x408a41
lea esp, [esp]
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00413af1
add esp, 4
test ebx, ebx
jne 0x408a30
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.004144ff
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret 0x10