Function at 0x40c3b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439898
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x446654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
call fcn.0040de30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x14], 0
je 0x40c42f
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x14], 0
je 0x40c42f
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x4c]
mov al, byte [edx]
mov byte [ebp - 0x51], al
add dword [ebp - 0x4c], 1
cmp byte [ebp - 0x51], 0
jne 0x40c412
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x50]
mov dword [ebp - 0x58], ecx
jne 0x40c438
mov dword [ebp - 0x18], 0
jmp 0x40c46c
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40c46c
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040de60
mov eax, dword [ebp - 0x34]
jmp 0x40c5c1
lea ecx, [ebp - 0x2c]
call fcn.0040dda0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040da80
lea ecx, [ebp - 0x2c]
call fcn.00402850
mov dword [ebp - 0x14], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c4ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], 0
je 0x40c4d0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040de60
mov eax, dword [ebp - 0x38]
jmp 0x40c5c1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 0x48]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40c522
mov edx, dword [ebp - 0x48]
cmp dword [edx + 8], 0
ja 0x40c54d
cmp dword [ebp - 0x18], 0
je 0x40c532
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040de60
mov eax, dword [ebp - 0x3c]
jmp 0x40c5c1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 8]
push eax
call fcn.00425067
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push ecx
call fcn.00427ec0
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x40c59f
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040de60
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret