Function at 0x40dd80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422120
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x42e1f4]
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.0040e6ab
add esp, 4
cmp eax, ebx
je 0x40e019
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 0x40def1
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.00403f50
mov eax, dword [esi + 0x2c]
mov esi, dword [ebp - 0x4c]
push eax
push edi
push esi
call fcn.0040e7a0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040db00
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040d970
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x40de86
push esi
call fcn.0040e51a
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 0x40ddf0
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x40dfd0
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 0x40def7
lea ebx, [esi + edx]
cmp ebx, ecx
je 0x40df6c
mov esi, ecx
sub esi, ecx
push esi
push ecx
push ebx
call fcn.0040ef80
mov eax, dword [ebp + 8]
add esp, 0xc
add esi, ebx
mov dword [eax + 4], esi
jmp 0x40df69
mov byte [ebp - 4], 3
jmp 0x40de89
jae 0x40df6c
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 0x40e00f
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 0x40df4b
mov ecx, eax
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
cmp edx, eax
jae 0x40df38
xor eax, eax
jmp 0x40df3a
add eax, ecx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jae 0x40df43
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004033f0
mov ecx, dword [ebx + 4]
mov eax, esi
sub eax, ecx
add eax, dword [ebx]
je 0x40df62
push eax
push 0
push ecx
call fcn.0040f2f0
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.0040e7a0
add esp, 0xc
cmp byte [edi + 0x21], 0
jne 0x40dfc7
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x40dfac
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x40dfc7
nop
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x40dfa0
jmp 0x40dfc7
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x40dfc5
cmp edi, dword [eax + 8]
jne 0x40dfc5
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x40dfb5
mov edi, eax
cmp edi, dword [ebp - 0x18]
jne 0x40deb0
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.0040dbe0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0040e51a
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.0041c023
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
call fcn.0040ee8e
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
mov dword [ebp - 4], 0xffffffff
push 0x429ab4
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e65f
int3