Function at 0x40b590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c91c3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x468
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x478]
mov ecx, 0x11a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
call fcn.00409d40
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
call fcn.0042dcc0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040bff0
lea ecx, [ebp - 0x464]
call fcn.0042dcc0
mov byte [ebp - 4], 1
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00440060
add esp, 8
mov dword [ebp - 0x46c], eax
mov esi, esp
push 2
push 0
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x40b652
call fcn.0040a0d0
mov dword [ebp - 0x38], eax
jmp 0x40b7cc
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40b683
call fcn.0040a0d0
mov dword [ebp - 0x38], eax
jmp 0x40b7cc
mov esi, esp
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40b6b0
call fcn.0040a0d0
mov dword [ebp - 0x38], eax
jmp 0x40b7cc
mov esi, esp
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x58]
add edx, 1
cmp edx, dword [ebp - 0x58]
jae 0x40b70e
mov dword [ebp - 0x474], 0x8007000e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x464]
call fcn.00417e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00417980
mov eax, dword [ebp - 0x474]
jmp 0x40b812
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x58]
add eax, 1
push eax
lea ecx, [ebp - 0x464]
call fcn.00417e90
jmp 0x40b733
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x464]
call fcn.0042cd20
test eax, eax
jne 0x40b752
mov dword [ebp - 0x38], 0x8007000e
jmp 0x40b7cc
mov esi, esp
mov ecx, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x464]
call fcn.0042cd20
push eax
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0
call fcn.00409d40
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.004c3b36
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0
jne 0x40b79a
call fcn.0040a0d0
mov dword [ebp - 0x38], eax
jmp 0x40b7cc
lea ecx, [ebp - 0x464]
call fcn.0042cd20
mov ecx, dword [ebp - 0x470]
mov word [eax + ecx*2], 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x464]
call fcn.0042cd20
push eax
lea ecx, [ebp - 0x44]
call fcn.0040ce90
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x4c], 0
je 0x40b7e5
mov esi, esp
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, esp
call fcn.004c3b36
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x478], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x464]
call fcn.00417e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00417980
mov eax, dword [ebp - 0x478]
push edx
mov ecx, ebp
push eax
lea edx, [0x40b850]
call fcn.004c3b59
pop eax
pop edx
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.004a1873
add esp, 0x478
cmp ebp, esp
call fcn.004c3b36
mov esp, ebp
pop ebp
ret 0x10