Function at 0x40ede0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4411f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x44f6c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
call fcn.0040fc60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 0
je 0x40ee5f
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x14], 0
je 0x40ee5f
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x48]
mov al, byte [edx]
mov byte [ebp - 0x4d], al
add dword [ebp - 0x48], 1
cmp byte [ebp - 0x4d], 0
jne 0x40ee42
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x54], ecx
jne 0x40ee68
mov dword [ebp - 0x18], 0
jmp 0x40ee9c
mov edx, dword [ebp - 0x44]
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 0x40ee9c
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040fc90
mov eax, dword [ebp - 0x30]
jmp 0x40efe9
lea ecx, [ebp - 0x28]
call fcn.0040fc00
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f8f0
lea ecx, [ebp - 0x28]
call fcn.0041b5a0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x44]
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 0x40ef16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x18], 0
je 0x40eef8
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040fc90
mov eax, dword [ebp - 0x34]
jmp 0x40efe9
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 - 0x44]
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 0x40ef4a
mov edx, dword [ebp - 0x44]
cmp dword [edx + 8], 0
ja 0x40ef75
cmp dword [ebp - 0x18], 0
je 0x40ef5a
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040fc90
mov eax, dword [ebp - 0x38]
jmp 0x40efe9
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
push eax
call fcn.00427a82
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
push ecx
call fcn.0042b380
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x40efc7
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040fc90
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret