Function at 0x40f000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4234d0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x42f1f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x24
mov dword [ebp - 0x34], ebx
call fcn.0040f92b
add esp, 4
cmp eax, ebx
je 0x40f299
mov dword [ebp - 0x38], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x20], 1
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x21], 1
mov dword [ebp - 4], 3
xor edi, edi
mov dword [ebp - 0x14], edi
lea ebx, [ebx]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea edx, [edi + 0xc9]
movzx eax, dx
push 2
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40f171
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [ebp - 0x50], ecx
push edx
lea ecx, [ebp - 0x4c]
lea edi, [esi + 0x30]
call fcn.00404850
mov eax, dword [esi + 0x2c]
mov esi, dword [ebp - 0x4c]
push eax
push edi
push esi
call fcn.0040fa20
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040ed80
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040ebf0
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x40f106
push esi
call fcn.0040f79a
add esp, 4
mov edi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], edi
cmp edi, 3
jl 0x40f070
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x40f250
nop
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x14]
sub esi, dword [edi + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
sub esi, edx
mov eax, ecx
sub eax, edx
add esi, ecx
mov dword [ebp - 0x14], eax
cmp eax, esi
jbe 0x40f177
lea ebx, [esi + edx]
cmp ebx, ecx
je 0x40f1ec
mov esi, ecx
sub esi, ecx
push esi
push ecx
push ebx
call fcn.00410200
mov eax, dword [ebp + 8]
add esp, 0xc
add esi, ebx
mov dword [eax + 4], esi
jmp 0x40f1e9
mov byte [ebp - 4], 3
jmp 0x40f109
jae 0x40f1ec
mov eax, edx
sub eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
add eax, esi
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, dword [ebp - 0x10]
jb 0x40f28f
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
add ecx, eax
mov eax, dword [ebx + 8]
sub eax, edx
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jbe 0x40f1cb
mov ecx, eax
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
cmp edx, eax
jae 0x40f1b8
xor eax, eax
jmp 0x40f1ba
add eax, ecx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jae 0x40f1c3
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004031b0
mov ecx, dword [ebx + 4]
mov eax, esi
sub eax, ecx
add eax, dword [ebx]
je 0x40f1e2
push eax
push 0
push ecx
call fcn.00410570
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
sub edx, ecx
push edx
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, eax
push edx
call fcn.0040fa20
add esp, 0xc
cmp byte [edi + 0x21], 0
jne 0x40f247
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x40f22c
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x40f247
nop
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x40f220
jmp 0x40f247
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x40f245
cmp edi, dword [eax + 8]
jne 0x40f245
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x40f235
mov edi, eax
cmp edi, dword [ebp - 0x18]
jne 0x40f130
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ee60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0040f79a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.0041d1be
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
call fcn.0041010e
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
mov dword [ebp - 4], 0xffffffff
push 0x42ac28
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f8df
int3