Function at 0x40c480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42a390]
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 [0x42a0f8]
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 0x40c54a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
mov dword [ebp - 0x78], esi
jg 0x40c506
push esi
call fcn.0040bd60
add esp, 4
test al, al
je 0x40c506
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.004156d0
mov esi, esp
jmp 0x40c521
add esi, 8
push esi
call fcn.00414fbc
add esp, 4
test eax, eax
je 0x40c548
mov dword [eax], 0
mov ebx, eax
lea esi, [eax + 8]
test esi, esi
je 0x40c548
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 0x40c54a
xor eax, eax
test eax, eax
jne 0x40c57f
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
cmp eax, ecx
je 0x40c560
lea ecx, [ebp - 0x68]
call fcn.0040c6a0
test ebx, ebx
je 0x40c575
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0041414d
add esp, 4
test ebx, ebx
jne 0x40c564
mov eax, 0x8007000e
jmp 0x40c673
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 0x40c59f
call fcn.0040be60
mov edi, eax
jmp 0x40c643
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 0x40c5bb
call fcn.0040be60
jmp 0x40c63a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x70], eax
jne 0x40c5d1
call fcn.0040be60
jmp 0x40c63a
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 0x40c5ff
push eax
lea ecx, [ebp - 0x68]
call fcn.0040c6b0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x40c605
mov edi, 0x8007000e
jmp 0x40c63c
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.0040c6e0
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 0x40c655
lea ecx, [ebp - 0x68]
call fcn.0040c6a0
test ebx, ebx
je 0x40c671
lea esp, [esp]
mov eax, ebx
mov ebx, dword [ebx]
push eax
call fcn.0041414d
add esp, 4
test ebx, ebx
jne 0x40c660
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.0041413a
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret 0x10