Function at 0x405dc6
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x419dc0
sub esp, 0x44
mov eax, dword [0x594fe0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
test eax, eax
je 0x419f7a
nop dword [eax]
mov edx, dword [ecx]
xorps xmm0, xmm0
add edx, edi
mov dword [esp + 0x48], 0
mov eax, edx
mov dword [esp + 0x4c], 0
movups xmmword [esp + 0x38], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419e31
sub eax, esi
lea ecx, [esp + 0x38]
push eax
push edx
call fcn.00404e26
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
test edi, edi
je 0x419f28
cmp dword [esp + 0x5c], 3
jbe 0x419f28
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x38]
mov ebx, esi
mov dword [esp + 0x28], esi
xor ebx, 0x14d
cmp dword [esp + 0x4c], 0x10
cmovae eax, ebp
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, esi
shr eax, 2
mov dword [esp + 0x1c], eax
test eax, eax
je 0x419ecc
mov esi, dword [esp + 0x20]
mov ebp, eax
push 0
push 0
call dword [sym.imp.USER32.dll_ValidateRgn]
imul ecx, dword [esi + edi*4], 0x5bd1e991
inc edi
imul ebx, ebx, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor ebx, ecx
cmp edi, ebp
jl 0x419e95
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
and esi, 3
lea edx, [ecx + eax*4]
xor ecx, ecx
sub esi, 1
je 0x419ef7
sub esi, 1
je 0x419eee
sub esi, 1
jne 0x419f04
movsx ecx, byte [edx + 2]
shl ecx, 0x10
movsx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [edx]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x419f20
cmp ecx, dword [esp + 0x5c]
je 0x419f93
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp eax, 0x10
jb 0x419f6b
lea ecx, [eax + 1]
mov eax, ebp
cmp ecx, 0x1000
jb 0x419f5d
mov ebp, dword [eax - 4]
add ecx, 0x23
sub eax, ebp
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419fe8
push ecx
push ebp
call fcn.0040191f
mov ecx, dword [esp + 0x1c]
add esp, 8
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x30]
jb 0x419e10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402d15
add esp, 0x44
ret
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
cmp eax, 0x10
jb 0x419f7a
lea ecx, [eax + 1]
mov eax, ebp
cmp ecx, 0x1000
jb 0x419fdc
mov ebp, dword [eax - 4]
add ecx, 0x23
sub eax, ebp
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419fe8
push ecx
push ebp
call fcn.0040191f
add esp, 8
jmp 0x419f7a
call fcn.00404232
int3