Function at 0x40c7b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0x160
call fcn.0040a961
push esi
push edi
sub esp, 0x140
push eax
mov edi, edx
mov esi, ebx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xc], 0
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x40c7e8
cmp ecx, 0xffffffff
jne 0x40c82e
test edi, edi
je 0x40c818
call fcn.0040be6d
test eax, eax
je 0x40c7fc
mov eax, 0x22
jmp 0x40c801
mov eax, 3
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x40c82e
xor eax, eax
mov dword [ebp - 0x14c], eax
jmp 0x40c8b0
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x40c8b0
mov ebx, 8
xor edx, edx
lea eax, [ebp - 0x20]
call fcn.0040aa70
push 0xa
push 0x414174
push ecx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test eax, eax
je 0x40c898
push eax
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40c898
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edx, eax
test eax, eax
je 0x40c898
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x40c8a4
cmp dword [ebp - 0x1c], 0
je 0x40c8b0
mov dword [ebp - 0x10], 1
jmp 0x40c98d
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x40c91f
test esi, esi
je 0x40c91f
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x40c91f
mov dword [ebp - 0x10], 1
cmp dword [esi + 0x2c], 0
jne 0x40c912
mov eax, dword [esi + 0x2c]
mov ebx, 0x20
xor ecx, ecx
call fcn.0040e085
mov ebx, dword [esi + 0x30]
or eax, ebx
mov ebx, 0x989680
xor ecx, ecx
call fcn.0040e0a0
add eax, 0xd53e8000
adc edx, 0x19db1de
mov dword [ebp - 0x20], eax
mov ebx, 0x20
xor ecx, ecx
call fcn.0040e050
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xc], 0x76
jmp 0x40c91f
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xc], 0x56
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x40c987
test edi, edi
jne 0x40c95d
mov ebx, 0x104
lea eax, [ebp - 0x148]
call fcn.0040aa70
push 0x104
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x40c95d
lea edi, [ebp - 0x148]
test edi, edi
je 0x40c987
lea eax, [ebp - 0x44]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExA]
test eax, eax
je 0x40c987
mov byte [ebp - 0xc], 0x46
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x40c8a4
cmp dword [ebp - 0x10], 0
je 0x40c9a7
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x40c999
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 8], 0
je 0x40c9a7
mov al, byte [ebp - 0xc]
mov edx, dword [ebp + 8]
mov byte [edx], al
cmp dword [ebp - 0x18], 0
je 0x40c9c3
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x40c9c3
cmp ecx, 0xffffffff
je 0x40c9c3
push ecx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4