Function at 0x40b6b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4251dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], 1
xor edi, edi
call fcn.00402190
test eax, eax
jle 0x40b7c3
lea ecx, [ebp + 0x1c]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x40b7c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
mov esi, eax
push 0xa
push esi
call fcn.00401020
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x41ba20
mov byte [ebp - 4], 2
call fcn.00401070
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00401000
mov byte [ebp - 4], 4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00401450
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00401450
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
mov ecx, dword [ebx]
push 0x402
push 1
push edi
call fcn.00406cf0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004010d0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0xd], 0
mov dword [ecx], 0x402
mov ecx, dword [ebp - 0x20]
mov dword [ecx], esi
jmp 0x40ba30
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov byte [ebp - 0xd], 0
test al, 1
jne 0x40b7db
test eax, eax
je 0x40b7db
shr eax, 1
inc ecx
test al, 1
je 0x40b7d0
lea eax, [ecx + 0xc8]
movzx eax, ax
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40b890
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov esi, eax
push 0xa
push esi
call fcn.00401020
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x41ba20
mov byte [ebp - 4], 7
call fcn.00401070
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00401000
mov byte [ebp - 4], 9
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00401450
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00401450
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
mov ecx, dword [ebx]
push 0x403
push 1
push 0
call fcn.00406cf0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004010d0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0xd], 0
mov dword [ecx], 0x403
mov ecx, dword [ebp - 0x20]
mov dword [ecx], esi
jmp 0x40ba30
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40b93a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
mov esi, eax
push 0xa
push esi
call fcn.00401020
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x41ba20
mov byte [ebp - 4], 0xc
call fcn.00401070
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.00401000
mov byte [ebp - 4], 0xe
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00401450
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.00401450
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
mov ecx, dword [ebp - 0x2c]
push 0x404
mov ecx, dword [ecx]
push 1
push ebx
call fcn.00406cf0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004010d0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0xd], bl
mov dword [ecx], 0x404
mov ecx, dword [ebp - 0x20]
mov dword [ecx], esi
jmp 0x40ba30
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40b9e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov esi, eax
push 0xa
push esi
call fcn.00401020
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x41ba20
mov byte [ebp - 4], 0x11
call fcn.00401070
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
call fcn.00401000
mov byte [ebp - 4], 0x13
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.00401450
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.00401450
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
mov ecx, dword [ebp - 0x2c]
push 0x405
mov ecx, dword [ecx]
push 1
push 0
call fcn.00406cf0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004010d0
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0x405
mov ecx, dword [ebp - 0x20]
mov dword [ecx], esi
jmp 0x40ba16
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push esi
push eax
sub esp, 8
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401000
mov ecx, dword [ebp - 0x2c]
call fcn.0040b410
test eax, eax
setne byte [ebp - 0xd]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp + 0x1c]
call fcn.00402190
test eax, eax
jle 0x40ba30
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28