Function at 0x40c940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429936
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x41c], edx
mov edx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], edx
xor ebx, ebx
mov dword [ebp - 0x428], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40ca67
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 - 0x434], edx
jne 0x40ca5f
cmp eax, 0xffffffff
ja 0x40ca5f
cmp esi, 0x400
jg 0x40ca05
push esi
call fcn.004025e0
add esp, 4
test al, al
je 0x40ca05
mov eax, esi
call fcn.00428cb0
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x40ca2d
or eax, 0xffffffff
sub eax, esi
cmp eax, 8
jb 0x40ca55
lea eax, [esi + 8]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
cmp eax, ebx
je 0x40ca5f
mov edi, eax
mov dword [eax], ebx
mov dword [ebp - 0x428], edi
lea ebx, [eax + 8]
test ebx, ebx
je 0x40ca5f
mov ecx, dword [ebp - 0x424]
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x40ca61
push 0x80070216
call fcn.004026e0
xor eax, eax
xor ebx, ebx
cmp eax, ebx
jne 0x40caa6
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x40ca80
lea ecx, [ebp - 0x418]
call fcn.00409bd0
cmp edi, ebx
je 0x40ca9c
mov esi, dword [sym.imp.MSVCR100.dll_free]
lea ebx, [ebx]
push edi
mov edi, dword [edi]
call esi
add esp, 4
cmp edi, ebx
jne 0x40ca90
mov eax, 0x8007000e
jmp 0x40cbde
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40cac8
call fcn.00407180
mov esi, eax
jmp 0x40cbab
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40caed
call fcn.00407180
jmp 0x40cba2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x40cb09
call fcn.00407180
jmp 0x40cba2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x40cb27
mov esi, 0x8007000e
jmp 0x40cba4
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040b3c0
mov dword [ebp - 4], 1
jmp 0x40cb5f
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40cb70
mov esi, 0x8007000e
jmp 0x40cba4
mov edx, dword [ebp - 0x420]
push esi
push edx
push esi
push eax
call fcn.00408a30
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov byte [eax + esi], 0
mov edx, dword [ebp - 0x418]
push ecx
push edx
lea ecx, [ebp - 0x430]
call fcn.0040c560
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40cbc4
lea ecx, [ebp - 0x418]
call fcn.00409bd0
test edi, edi
je 0x40cbdc
mov ebx, dword [sym.imp.MSVCR100.dll_free]
mov edi, edi
push edi
mov edi, dword [edi]
call ebx
add esp, 4
test edi, edi
jne 0x40cbd0
mov eax, esi
lea esp, [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret 0x10