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

Disassembly:
sub esp, 0x38
mov eax, dword [0x46d700]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x405b2b
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x3c], 0
mov eax, edx
mov dword [esp + 0x40], 0
movups xmmword [esp + 0x2c], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405961
sub eax, esi
lea ecx, [esp + 0x2c]
push eax
push edx
call fcn.00401a80
push str.Dont_afraid
push 0x46f3e8
call fcn.004015f0
mov edi, eax
add esp, 8
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x28], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0x24]
push eax
call fcn.00401bb0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx ebx, ax
test esi, esi
je 0x4059d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4059d0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
mov ecx, edi
call fcn.00405ea0
mov ecx, edi
call fcn.00405730
mov edi, dword [esp + 0x3c]
lea ebx, [esp + 0x2c]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x40], 0x10
cmovae ebx, dword [esp + 0x2c]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.004062c0
add esp, 0xc
xor edx, edx
test edi, edi
je 0x405a32
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x405a11
mov eax, dword [esp + 0x3c]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x405a5c
sub eax, 1
je 0x405a52
sub eax, 1
jne 0x405a6a
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x50]
je 0x405ada
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x405ac9
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405abb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b44
push ecx
push edx
call fcn.004097ac
mov eax, dword [esp + 0x18]
add esp, 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x405940
jmp 0x405b2b
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x405b2b
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405b21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b44
push ecx
push edx
call fcn.004097ac
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409bf0
add esp, 0x38
ret
call fcn.0040e4bf
int3