Function at 0x4087c0
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 0x40888a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
mov dword [ebp - 0x78], esi
jg 0x408846
push esi
call fcn.004080a0
add esp, 4
test al, al
je 0x408846
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00414f90
mov esi, esp
jmp 0x408861
add esi, 8
push esi
call fcn.004149e6
add esp, 4
test eax, eax
je 0x408888
mov dword [eax], 0
mov ebx, eax
lea esi, [eax + 8]
test esi, esi
je 0x408888
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 0x40888a
xor eax, eax
test eax, eax
jne 0x4088bf
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x4088a0
lea ecx, [ebp - 0x68]
call fcn.00409f00
test ebx, ebx
je 0x4088b5
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00413ba1
add esp, 4
test ebx, ebx
jne 0x4088a4
mov eax, 0x8007000e
jmp 0x4089b3
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 0x4088df
call fcn.004081a0
mov edi, eax
jmp 0x408983
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 0x4088fb
call fcn.004081a0
jmp 0x40897a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x70], eax
jne 0x408911
call fcn.004081a0
jmp 0x40897a
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 0x40893f
push eax
lea ecx, [ebp - 0x68]
call fcn.004089e0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x408945
mov edi, 0x8007000e
jmp 0x40897c
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.00408a10
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 0x408995
lea ecx, [ebp - 0x68]
call fcn.00409f00
test ebx, ebx
je 0x4089b1
lea esp, [esp]
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.00413ba1
add esp, 4
test ebx, ebx
jne 0x4089a0
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.004145af
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret 0x10