Function at 0x405a2c
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47295a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x103b4
call fcn.00455490
mov eax, dword [0x499520]
xor eax, esp
mov dword [esp + 0x103b0], eax
push ebx
push esi
push edi
mov eax, dword [0x499520]
xor eax, esp
push eax
lea eax, [esp + 0x103c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xa
push 0xff
xor ebx, ebx
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x405ac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x108]
call fcn.0042783a
pop ecx
lea esi, [esp + 0xec]
mov dword [esp + 0x103d0], ebx
call fcn.00404e30
push 0x4915dc
mov eax, esi
push eax
call fcn.004554bb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x48], eax
cmp edi, ebx
jne 0x405b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x124]
call fcn.0042783a
pop ecx
lea esi, [esp + 0xf8]
mov dword [esp + 0x103d0], 1
call fcn.00404e30
push 0x4915dc
mov eax, esi
jmp 0x405abc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x31
pop ecx
mov esi, 0x477c98
mov edi, 0x4a4700
push 0x477da0
mov dword [esp + 0x28], eax
rep movsd dword es:[edi], dword [esi]
call fcn.00443200
pop ecx
cmp eax, 0xffffffff
jne 0x405b67
call fcn.004060f2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x78]
call fcn.0044c67b
mov dword [esp + 0x74], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0x78]
jmp 0x405abc
push 0x477ea8
call fcn.00441cb0
pop ecx
cmp eax, 0xffffffff
jne 0x405bad
call fcn.00406157
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xb4]
call fcn.0044c67b
mov dword [esp + 0xb0], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0xb4]
jmp 0x405abc
xor eax, eax
test byte [0x4a44e4], 1
lea edi, [esp + 0x1f]
stosb byte es:[edi], al
lea edi, [esp + 0x1d]
stosb byte es:[edi], al
jne 0x405bda
or dword [0x4a44e4], 1
mov dword [0x49f8fc], 0xb5e5ecf7
mov byte [0x49f900], 0x84
xor eax, eax
mov cl, byte [eax + 0x49f8fc]
xor cl, 0x84
mov byte [eax + 0x49fff4], cl
inc eax
cmp eax, 5
jb 0x405bdc
push 0x49fff4
call fcn.004432b0
pop ecx
cmp eax, ebx
jge 0x405c36
call fcn.004061bc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x90]
call fcn.0044c67b
mov dword [esp + 0x8c], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0x90]
jmp 0x405abc
xor eax, eax
test byte [0x4a44dc], 1
lea edi, [esp + 0x1c]
stosb byte es:[edi], al
lea edi, [esp + 0x1e]
stosb byte es:[edi], al
jne 0x405c5c
or dword [0x4a44dc], 1
mov dword [0x49f918], 0x84f7e1e5
xor eax, eax
mov cl, byte [eax + 0x49f918]
xor cl, 0x84
mov byte [eax + 0x4a0010], cl
inc eax
cmp eax, 4
jb 0x405c5e
push 0x4a0010
call fcn.00443270
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x405cba
call fcn.00406221
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xcc]
call fcn.0044c67b
mov dword [esp + 0xc8], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0xcc]
jmp 0x405abc
push 0x10258
lea eax, [esp + 0x140]
push 0
push eax
call fcn.0044fbd0
mov eax, dword [0x49a8d0]
mov dword [esp + 0x103b2], eax
mov al, byte [0x49a8a3]
mov esi, 0x49a8bc
lea edi, [esp + 0x103ac]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x49a8b0
lea edi, [esp + 0x103af]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x103b4], al
mov eax, dword [0x49a8c0]
mov esi, 0x49a8c8
lea edi, [esp + 0x103b5]
movsw word es:[edi], word [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x103ac], eax
push 0x10
lea eax, [esp + 0x103a4]
push eax
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.00443070
add esp, 0x10
push 0x10
test eax, eax
pop ecx
lea eax, [esp + 0x103a0]
je 0x405d87
mov byte [eax], 0
inc eax
dec ecx
jne 0x405d4a
call fcn.00406286
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xa8]
call fcn.0044c67b
mov dword [esp + 0xa4], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0xa8]
jmp 0x405abc
mov byte [eax], 0
inc eax
dec ecx
jne 0x405d87
mov ax, word [0x49a8e0]
mov word [esp + 0x10394], ax
mov ax, word [0x49a8cc]
mov esi, 0x49a8d4
lea edi, [esp + 0x10396]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov word [esp + 0x1039b], ax
mov esi, 0x49a8dc
lea edi, [esp + 0x1039d]
push 0xc
lea eax, [esp + 0x10398]
movsw word es:[edi], word [esi]
push eax
lea eax, [esp + 0x144]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00442b90
add esp, 0xc
push 0xc
test eax, eax
pop ecx
lea eax, [esp + 0x10394]
je 0x405e2c
mov byte [eax], 0
inc eax
dec ecx
jne 0x405def
call fcn.004062da
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xe4]
call fcn.0044c67b
mov dword [esp + 0xe0], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0xe4]
jmp 0x405abc
mov byte [eax], 0
inc eax
dec ecx
jne 0x405e2c
push 9
call fcn.0040632e
push eax
lea eax, [esp + 0x144]
push eax
call fcn.00442640
add esp, 0xc
test eax, eax
je 0x405e85
call fcn.00406378
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc0]
call fcn.0044c67b
mov dword [esp + 0xbc], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0xc0]
jmp 0x405abc
mov ebx, dword [esp + 0x48]
cmp ebx, 0x10
jb 0x4060bc
test bl, 0xf
jne 0x4060bc
mov esi, 0x110
push esi
call fcn.0044d0d0
mov edi, eax
pop ecx
test edi, edi
je 0x405ec1
push esi
push 0
push edi
call fcn.0044fbd0
mov eax, edi
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x405eca
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x103d0], 2
test byte [0x4a44c0], 1
lea ecx, [ebx - 0x10]
mov dword [eax + 0x104], esi
mov dword [eax + 0x100], ecx
mov dword [eax + 0x108], ecx
lea ecx, [esp + 0x13c]
mov dword [eax + 0x10c], ecx
jne 0x405f20
or dword [0x4a44c0], 1
mov dword [0x49f97c], 0xe6ebe8e6
mov byte [0x49f980], 0x84
xor ecx, ecx
mov dl, byte [ecx + 0x49f97c]
xor dl, 0x84
mov byte [ecx + 0x4a0074], dl
inc ecx
cmp ecx, 5
jb 0x405f22
mov ecx, dword [esp + 0x18]
push 0
push 0x4a0074
push eax
mov eax, 0x40594a
call fcn.0042f500
add esp, 0xc
test eax, eax
je 0x405f9a
call fcn.00406420
mov ecx, dword [esp + 0x18]
push eax
push 0xffffffffffffffff
xor eax, eax
call fcn.0042db6a
pop ecx
pop ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xd8]
call fcn.0044c67b
mov dword [esp + 0xd4], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0xd8]
jmp 0x405abc
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x103b4]
push eax
lea eax, [esp + 0x144]
push eax
mov dword [esp + 0x40], 0x10
call fcn.00442920
add esp, 0xc
test eax, eax
je 0x405ff0
call fcn.0040648f
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x60]
call fcn.0044c67b
mov dword [esp + 0x5c], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0x60]
jmp 0x405abc
push 4
lea edi, [esi + ebx - 0x10]
pop ecx
lea esi, [esp + 0x103b0]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x406031
call fcn.004064e3
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x6c]
call fcn.0044c67b
mov dword [esp + 0x68], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0x6c]
jmp 0x405abc
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
xor ebx, ebx
xor edx, edx
call fcn.0042f44f
pop ecx
pop ecx
test eax, eax
je 0x40608e
call fcn.00406537
mov ecx, dword [esp + 0x18]
push eax
push 0xffffffffffffffff
xor eax, eax
call fcn.0042db6a
pop ecx
pop ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x84]
call fcn.0044c67b
mov dword [esp + 0x80], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0x84]
jmp 0x405abc
push dword [esp + 0x14]
call fcn.0044cf93
pop ecx
mov ecx, dword [esp + 0x103c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x103b0]
xor ecx, esp
call fcn.0044c4ce
mov esp, ebp
pop ebp
ret
call fcn.004063cc
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x9c]
call fcn.0044c67b
mov dword [esp + 0x98], vtable.std::runtime_error.0
push 0x4915dc
lea eax, [esp + 0x9c]
jmp 0x405abc