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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x41800c]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
mov esi, dword [0x49e400]
mov dword [esp + 0x54], edx
push edi
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x50], 0
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [ecx + esi + 0x20]
add ecx, esi
mov dword [esp + 0x4c], ecx
add eax, esi
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 0x18]
xor ecx, ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x28], ecx
test edx, edx
je 0x401459
mov edi, dword [eax]
xorps xmm0, xmm0
add edi, esi
movaps xmmword [esp + 0x60], xmm0
mov esi, edi
mov dword [esp + 0x20], edi
mov edx, 0x16
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4011d8
sub esi, ecx
mov dword [esp + 0x30], esi
cmp esi, 0x7fffffff
ja 0x401473
cmp esi, 0x10
jae 0x401231
push esi
lea eax, [esp + 0x64]
mov dword [esp + 0x74], esi
push edi
push eax
mov dword [esp + 0x80], 0xf
call fcn.00403470
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], edx
jmp 0x4012c9
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x401251
mov edi, 0x7fffffff
mov ecx, 0x80000000
mov dword [esp + 0x10], edi
add ecx, 0x23
jmp 0x401270
cmp edi, 0x16
cmovb edi, edx
mov dword [esp + 0x10], edi
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x40128e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401478
push ecx
call fcn.0040232a
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40147d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4012a3
test eax, eax
je 0x40129d
push eax
call fcn.0040232a
add esp, 4
jmp 0x40129f
xor eax, eax
mov dword [esp + 0x10], edi
push esi
push dword [esp + 0x24]
mov dword [esp + 0x1c], eax
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], edi
call fcn.00403470
mov edx, dword [esp + 0x20]
mov byte [edx + esi], 0
add esp, 0xc
cmp dword [esp + 0x1c], 0
jbe 0x4013b9
mov eax, esi
mov dword [esp + 0x54], 0
xor eax, 0x14d
cmp edi, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
cmovae eax, edx
mov dword [esp + 0x20], eax
mov eax, esi
shr eax, 2
mov dword [esp + 0x2c], eax
test eax, eax
je 0x401353
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
nop dword [eax]
push 0
push 0
call dword [sym.imp.USER32.dll_ValidateRgn]
mov eax, dword [esp + 0x20]
imul esi, esi, 0x5bd1e991
imul ecx, dword [eax + edi*4], 0x5bd1e991
inc edi
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
mov eax, dword [esp + 0x2c]
xor esi, ecx
cmp edi, eax
jl 0x401310
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
and esi, 3
lea eax, [ecx + eax*4]
xor ecx, ecx
mov dword [esp + 0x2c], eax
sub esi, 1
je 0x401386
sub esi, 1
je 0x401379
sub esi, 1
jne 0x401399
movsx ecx, byte [eax + 2]
shl ecx, 0x10
movsx eax, byte [eax + 1]
shl eax, 8
xor ecx, eax
mov eax, dword [esp + 0x2c]
movsx eax, byte [eax]
xor eax, ecx
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x5bd1e991
xor ecx, eax
jmp 0x40139d
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x4013b9
cmp ecx, dword [esp + 0x58]
je 0x401408
add dword [esp + 0x24], 4
cmp edi, 0x10
jb 0x4013ec
inc edi
mov eax, edx
cmp edi, 0x1000
jb 0x4013e2
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40147d
push edi
push edx
call fcn.0040235a
add esp, 8
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x5c]
jae 0x401459
mov eax, dword [esp + 0x24]
jmp 0x4011be
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
mov dword [esp + 0x50], eax
cmp edi, 0x10
jb 0x401459
inc edi
mov eax, edx
cmp edi, 0x1000
jb 0x40144f
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40147d
push edi
push edx
call fcn.0040235a
add esp, 8
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x8c]
add eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040231c
mov esp, ebp
pop ebp
ret
call fcn.00401150
call fcn.004010d0
call fcn.0040576c
int3