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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x433010]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov esi, dword [0x456a60]
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [ecx + esi + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
add eax, esi
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x18]
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
test edx, edx
je 0x402a7f
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, esi
movaps xmmword [esp + 0x30], xmm0
mov eax, edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402895
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.004038a0
mov edx, str.Hardline
mov ecx, 0x457230
call fcn.00403600
mov edi, eax
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 + 0x2c], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0x28]
push eax
call fcn.00404110
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x30]
call eax
movzx eax, ax
mov dword [esp + 0xc], eax
test esi, esi
je 0x40290d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x402909
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
call fcn.00403ce0
mov ecx, edi
call fcn.00403be0
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov esi, edi
xor esi, 0x36c
cmp dword [esp + 0x44], 0x10
cmovae eax, dword [esp + 0x30]
push eax
shr edi, 2
push edi
push str._x_and__p
mov dword [esp + 0x18], eax
call fcn.00401230
add esp, 0xc
xor edx, edx
test edi, edi
je 0x402977
mov eax, dword [esp + 0xc]
imul esi, esi, 0x5bd1e995
imul ecx, dword [eax + edx*4], 0x5bd1e995
inc edx
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
cmp edx, edi
jl 0x402952
mov eax, dword [esp + 0xc]
xor ecx, ecx
lea edx, [eax + edi*4]
mov eax, dword [esp + 0x40]
and eax, 3
sub eax, 1
je 0x4029a6
sub eax, 1
je 0x40299d
sub eax, 1
jne 0x4029b3
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, 0x5bd1e995
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [ebp + 0xc]
je 0x402a2a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x402a11
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a98
push ecx
push edx
call fcn.0040791f
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x20]
jb 0x402874
jmp 0x402a7f
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
cmp ecx, 0x10
jb 0x402a7f
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a98
push ecx
push edx
call fcn.0040791f
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
add eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004078dc
mov esp, ebp
pop ebp
ret 8
call fcn.0040dfb2
int3