Function at 0x408900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cec6
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x413034]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
xor ebx, ebx
mov dword [ebp - 0x434], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x424], ebx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x408a1a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdq
mov esi, eax
shld edx, esi, 1
add esi, esi
mov eax, esi
add eax, 0x80000000
adc edx, ebx
mov dword [ebp - 0x440], edx
jne 0x408a12
cmp eax, 0xffffffff
ja 0x408a12
cmp esi, 0x400
jg 0x4089be
push esi
call fcn.004073d0
add esp, 4
test al, al
je 0x4089be
mov eax, esi
call fcn.0040c820
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x4089ea
or edx, 0xffffffff
sub edx, esi
cmp edx, 8
jb 0x408ae7
lea eax, [esi + 8]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
cmp eax, ebx
je 0x408a12
mov edi, eax
mov dword [eax], ebx
mov dword [ebp - 0x434], edi
lea ebx, [eax + 8]
test ebx, ebx
je 0x408a12
mov eax, dword [ebp - 0x430]
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x408a14
xor eax, eax
xor ebx, ebx
cmp eax, ebx
jne 0x408a56
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x408a33
lea eax, [ebp - 0x424]
call fcn.00406a20
cmp edi, ebx
je 0x408a4c
mov esi, dword [sym.imp.MSVCR100.dll_free]
lea ecx, [ecx]
push edi
mov edi, dword [edi]
call esi
add esp, 4
cmp edi, ebx
jne 0x408a40
mov eax, 0x8007000e
jmp 0x408bb6
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x430], ebx
test ebx, ebx
jne 0x408a78
call fcn.00406a30
mov esi, eax
jmp 0x408b85
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x428]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x408a9d
call fcn.00406a30
jmp 0x408b7c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x408ab9
call fcn.00406a30
jmp 0x408b7c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x428], esi
cmp eax, esi
jae 0x408ada
mov esi, 0x8007000e
jmp 0x408b7e
xor ecx, ecx
mov byte [ebp - 4], 2
ja 0x408ae7
cmp eax, 0xffffffff
jbe 0x408af1
push 0x80070216
call fcn.00407a00
cmp eax, 0x400
jbe 0x408b27
lea ecx, [ebp - 0x424]
push ecx
call fcn.004072c0
jmp 0x408b33
lea edx, [ebp - 0x420]
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x408b4b
mov esi, 0x8007000e
jmp 0x408b7e
mov ecx, dword [ebp - 0x42c]
push esi
push eax
mov eax, esi
call fcn.00406c50
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 0x10]
add esp, 8
mov byte [eax + esi], 0
push ecx
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x43c]
call fcn.00408790
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x420]
cmp dword [ebp - 0x424], edx
je 0x408b9e
lea eax, [ebp - 0x424]
call fcn.00406a20
test edi, edi
je 0x408bb4
mov ebx, dword [sym.imp.MSVCR100.dll_free]
push edi
mov edi, dword [edi]
call ebx
add esp, 4
test edi, edi
jne 0x408ba8
mov eax, esi
lea esp, [ebp - 0x454]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040be38
mov esp, ebp
pop ebp
ret 0xc