Function at 0x408f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cb00
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4254ec]
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.0040985b
add esp, 4
cmp eax, ebx
je 0x4091c9
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 0xa
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x4090a1
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.004041b0
mov eax, dword [esi + 0x2c]
mov esi, dword [ebp - 0x4c]
push eax
push edi
push esi
call fcn.00409950
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00408cb0
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00408b20
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x409036
push esi
call fcn.00409679
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 0x408fa0
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x409180
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 0x4090a7
lea ebx, [esi + edx]
cmp ebx, ecx
je 0x40911c
mov esi, ecx
sub esi, ecx
push esi
push ecx
push ebx
call fcn.00409cc0
mov eax, dword [ebp + 8]
add esp, 0xc
add esi, ebx
mov dword [eax + 4], esi
jmp 0x409119
mov byte [ebp - 4], 3
jmp 0x409039
jae 0x40911c
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 0x4091bf
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 0x4090fb
mov ecx, eax
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
cmp edx, eax
jae 0x4090e8
xor eax, eax
jmp 0x4090ea
add eax, ecx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jae 0x4090f3
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00403620
mov ecx, dword [ebx + 4]
mov eax, esi
sub eax, ecx
add eax, dword [ebx]
je 0x409112
push eax
push 0
push ecx
call fcn.0040a470
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.00409950
add esp, 0xc
cmp byte [edi + 0x21], 0
jne 0x409177
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x40915c
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x409177
nop
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x409150
jmp 0x409177
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x409175
cmp edi, dword [eax + 8]
jne 0x409175
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x409165
mov edi, eax
cmp edi, dword [ebp - 0x18]
jne 0x409060
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.00408d90
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00409679
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.00416fce
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
call fcn.0040a382
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
mov dword [ebp - 4], 0xffffffff
push 0x421fc8
lea eax, [ebp - 0x2c]
push eax
call fcn.004097be
int3