Function at 0x4041f0
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 0x44655d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x210
mov eax, dword [0x4600c0]
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 - 0x1dc], eax
mov dword [ebp - 0x1e4], eax
push 0xa
push 0x45952c
mov dword [ebp - 0x1e0], 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 0x40495e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c4], eax
test eax, eax
je 0x40497f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4049a0
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c4], eax
test eax, eax
je 0x4049c1
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 0x4049e2
cmp edi, 0x1000
jb 0x40431b
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4049e7
push eax
call fcn.004217b4
add esp, 4
test eax, eax
je 0x4049ec
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x404326
push edi
call fcn.004217b4
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.00422fb0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edi, eax
mov byte [ebp - 4], 1
push str.Size_
sub edi, esi
push 0x463598
mov dword [ebp - 0x1d8], edi
call fcn.00408300
add esp, 8
mov ecx, eax
push edi
call fcn.00405220
push 0xa
push eax
call fcn.00408590
xor edi, edi
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c8], edi
movq qword [ebp - 0x48], xmm0
add esp, 8
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
mov eax, dword [ebp - 0x1d8]
mov byte [ebp - 4], 2
test eax, eax
je 0x4043d7
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00409a00
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.00423530
add esp, 0xc
push 0x40
call fcn.004217b4
add esp, 4
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1ec], eax
push 0x40
push 0
push eax
mov byte [ebp - 4], 3
call fcn.00423530
add esp, 0xc
push 0x20
call fcn.004217b4
mov edi, eax
add esp, 4
mov dword [ebp - 0x1e8], 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.0040a370
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.0040e3b0
push edi
mov edi, dword [ebp - 0x1e4]
mov ecx, edi
push 4
push eax
call fcn.00403bd0
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.00403990
push 0x40
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.00423530
add esp, 0xc
push 0x40
call fcn.004217b4
add esp, 4
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1e8], eax
push 0x40
push 0
push eax
mov byte [ebp - 4], 6
call fcn.00423530
add esp, 0xc
push 0x20
call fcn.004217b4
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.0040a370
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.0040e3b0
push edi
mov edi, dword [ebp - 0x1d0]
mov ecx, edi
push 4
push eax
call fcn.00403bd0
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.00403990
push 0x30
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 8
push 0
push eax
call fcn.00423530
add esp, 0xc
lea ecx, [ebp - 0xbc]
push 1
call fcn.0040a370
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.0040b710
push 0x3c
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xc
push 0
push eax
call fcn.00423530
add esp, 0xc
lea ecx, [ebp - 0x8c]
push 1
call fcn.0040a370
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], 0x44a9c8
mov dword [ebp - 0x8c], 0x44aa10
call fcn.0040b950
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 0x4046e7
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.00423530
add esp, 0xc
push 0x20
call fcn.004217b4
mov edi, eax
add esp, 4
mov dword [ebp - 0x1e8], 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.0040a370
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.0040c4a0
push 1
push 0
push dword [ebp - 0x1d8]
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 ecx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c4]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x48], 0
call fcn.00403750
lea ecx, [ebp - 0x90]
call fcn.00404080
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 0x40482d
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0040fe50
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 0x40485d
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call fcn.0040fdd0
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 0x404881
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 0x4048a5
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
je 0x4048d6
mov ecx, dword [ebp - 0x4c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4048cc
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4049ec
push ecx
push esi
call fcn.004217e4
add esp, 8
mov eax, dword [ebp - 0x1dc]
jmp 0x404940
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.00421795
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Could_not_find_resource
lea ecx, [ebp - 0x200]
call fcn.00401570
push 0x45f048
lea eax, [ebp - 0x200]
push eax
call fcn.00422f38
push str.Not_loaded_resource
lea ecx, [ebp - 0x20c]
call fcn.00401570
push 0x45f048
lea eax, [ebp - 0x20c]
push eax
call fcn.00422f38
push str.Size_of_resource_is_null_or_negative
lea ecx, [ebp - 0x218]
call fcn.00401570
push 0x45f048
lea eax, [ebp - 0x218]
push eax
call fcn.00422f38
push str.Lock_resource_null
lea ecx, [ebp - 0x224]
call fcn.00401570
push 0x45f048
lea eax, [ebp - 0x224]
push eax
call fcn.00422f38
call fcn.00407c90
call fcn.00401450
call fcn.0042f537
int3