Function at 0x4040f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443fad
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x210
mov eax, dword [0x45d0c0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1d0], edx
mov eax, ecx
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1e0], eax
push 0xa
push 0x4564cc
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebx + 8]
push 0
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x404825
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c4], eax
test eax, eax
je 0x404846
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404867
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c4], eax
test eax, eax
je 0x404888
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
cmp edi, 0x7fffffff
ja 0x4048a9
cmp edi, 0x1000
jb 0x40421b
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4048ae
push eax
call fcn.0041f444
add esp, 4
test eax, eax
je 0x4048b3
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x404226
push edi
call fcn.0041f444
add esp, 4
mov esi, eax
push edi
push dword [ebp - 0x1c4]
lea eax, [esi + edi]
mov dword [ebp - 0x54], esi
push esi
mov dword [ebp - 0x4c], eax
call fcn.00420c60
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x50], eax
xor edi, edi
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c8], edi
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x1cc], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x40], edi
sub eax, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x1e0], eax
je 0x4042a4
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00407710
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c8], eax
push 0x40
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004211e0
add esp, 0xc
push 0x40
call fcn.0041f444
add esp, 4
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1ec], eax
push 0x40
push 0
push eax
mov byte [ebp - 4], 3
call fcn.004211e0
add esp, 0xc
push 0x20
call fcn.0041f444
mov edi, eax
add esp, 4
mov dword [ebp - 0x1e4], edi
xorps xmm0, xmm0
mov byte [ebp - 4], 4
movups xmmword [edi], xmm0
push 0
mov ecx, edi
movups xmmword [edi + 0x10], xmm0
call fcn.00408080
lea eax, [ebp - 0x3c]
mov dword [edi], vtable.CryptoPP::ArraySink.0
mov dword [edi + 4], vtable.CryptoPP::ArraySink.1.0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x10
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 3
call fcn.0040c0d0
push edi
mov edi, dword [ebp - 0x1e8]
mov ecx, edi
push 4
push eax
call fcn.00403ad0
push edi
push ecx
push dword [ebp - 0x1d0]
lea ecx, [ebp - 0x140]
mov dword [edi], vtable.CryptoPP::HexDecoder.0
mov dword [edi + 4], vtable.CryptoPP::HexDecoder.1.0
mov byte [ebp - 4], 2
call fcn.00403890
push 0x40
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.004211e0
add esp, 0xc
push 0x40
call fcn.0041f444
add esp, 4
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1e4], eax
push 0x40
push 0
push eax
mov byte [ebp - 4], 6
call fcn.004211e0
add esp, 0xc
push 0x20
call fcn.0041f444
mov edi, eax
add esp, 4
mov dword [ebp - 0x1ec], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0
movups xmmword [edi + 0x10], xmm0
call fcn.00408080
lea eax, [ebp - 0x2c]
mov dword [edi], vtable.CryptoPP::ArraySink.0
mov dword [edi + 4], vtable.CryptoPP::ArraySink.1.0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x10
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 6
call fcn.0040c0d0
push edi
mov edi, dword [ebp - 0x1d0]
mov ecx, edi
push 4
push eax
call fcn.00403ad0
push edi
push ecx
push dword [ebp - 0x1d4]
lea ecx, [ebp - 0x100]
mov dword [edi], vtable.CryptoPP::HexDecoder.0
mov dword [edi + 4], vtable.CryptoPP::HexDecoder.1.0
mov byte [ebp - 4], 5
call fcn.00403890
push 0x30
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 8
push 0
push eax
call fcn.004211e0
add esp, 0xc
lea ecx, [ebp - 0xbc]
push 1
call fcn.00408080
mov dword [ebp - 0xac], 0x3fffffff
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x3c]
push dword [section..data]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], vtable.CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec_.0
push 0x10
push eax
mov dword [ebp - 0xbc], vtable.CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec_.1.0
call fcn.00409420
push 0x3c
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xc
push 0
push eax
call fcn.004211e0
add esp, 0xc
lea ecx, [ebp - 0x8c]
push 1
call fcn.00408080
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x80], 0xffffffff
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x4479c8
mov dword [ebp - 0x8c], 0x447a10
call fcn.00409660
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x90]
call dword [eax + 0x40]
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x90]
push 0
call dword [eax + 0x3c]
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x90]
mov eax, dword [eax + 0x1c]
call eax
cmp eax, 4
jge 0x4045b4
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x90]
call dword [eax + 0x2c]
push 0x7c
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 0x10
push 0
push eax
call fcn.004211e0
add esp, 0xc
push 0x20
call fcn.0041f444
mov edi, eax
add esp, 4
mov dword [ebp - 0x1e4], edi
mov eax, dword [ebp - 0x1cc]
xorps xmm0, xmm0
sub eax, dword [ebp - 0x1c8]
mov ecx, edi
mov byte [ebp - 4], 0x11
movups xmmword [edi], xmm0
push 0
movups xmmword [edi + 0x10], xmm0
mov dword [ebp - 0x1d4], eax
call fcn.00408080
mov eax, dword [ebp - 0x1c8]
lea ecx, [ebp - 0x1c0]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x1d4]
push 5
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x8c]
push edi
push eax
mov dword [edi], vtable.CryptoPP::ArraySink.0
mov dword [edi + 4], vtable.CryptoPP::ArraySink.1.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 0x10
call fcn.0040a1c0
push 1
push 0
push dword [ebp - 0x1e0]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1c0]
mov eax, dword [ebp - 0x1c0]
push esi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1c0]
push 1
push 0xffffffffffffffff
push 0
push 0
call dword [eax + 0x18]
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1cc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x1c4]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x48], 0
call fcn.00403650
lea ecx, [ebp - 0x90]
call fcn.00403f80
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
cmp eax, ecx
mov edx, dword [ebp - 0x94]
cmovb ecx, eax
test edx, edx
je 0x4046fa
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0040db70
add esp, 4
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0xa8]
cmp dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xa4]
cmovb ecx, dword [ebp - 0xac]
test edx, edx
je 0x40472a
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call fcn.0040daf0
add esp, 4
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - method.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.virtual_0], vtable.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.0
mov dword [ebp - 0xfc], vtable.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.1.0
test ecx, ecx
je 0x40474e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x130]
mov dword [ebp - method.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.virtual_0], vtable.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.0
mov dword [ebp - method.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.1.virtual_0], vtable.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.1.0
test ecx, ecx
je 0x404772
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
je 0x4047a3
mov ecx, dword [ebp - 0x4c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x404799
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4048b3
push ecx
push esi
call fcn.0041f474
add esp, 8
mov eax, dword [ebp - 0x1d8]
jmp 0x404807
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041f425
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Could_not_find_resource
lea ecx, [ebp - 0x200]
call fcn.00401480
push 0x45bc50
lea eax, [ebp - 0x200]
push eax
call fcn.00420be8
push str.Not_loaded_resource
lea ecx, [ebp - 0x20c]
call fcn.00401480
push 0x45bc50
lea eax, [ebp - 0x20c]
push eax
call fcn.00420be8
push str.Size_of_resource_is_null_or_negative
lea ecx, [ebp - 0x218]
call fcn.00401480
push 0x45bc50
lea eax, [ebp - 0x218]
push eax
call fcn.00420be8
push str.Lock_resource_null
lea ecx, [ebp - 0x224]
call fcn.00401480
push 0x45bc50
lea eax, [ebp - 0x224]
push eax
call fcn.00420be8
call fcn.00406430
call fcn.004013d0
call fcn.0042afdf
int3