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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
mov eax, dword [0x10185028]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], eax
push edi
xor edi, edi
mov eax, dword [esi + 0x160]
mov dword [esp + 0x24], eax
movzx eax, word [esi + 0x1c8]
mov ecx, eax
mov dword [esp + 0x44], eax
movzx eax, word [esi + 0x1cc]
mov dword [esp + 0x8c], ecx
mov ecx, eax
push 0x60
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xa4]
push edi
push eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x24], edi
call fcn.100b1720
add esp, 0xc
lea ecx, [edi + 4]
lea eax, [esp + 0xa4]
nop
mov dword [eax - 4], edi
lea eax, [eax + 0x18]
mov dword [eax - 0x18], edi
mov dword [eax - 0x14], edi
mov dword [eax - 0x10], edi
sub ecx, 1
jne 0x1005d580
mov eax, dword [esi + 0x40]
lea eax, [eax*2 + 0x23]
sar eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x5c], eax
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x28]
cmp esi, dword [eax + 0x5c10]
jle 0x1005d605
push esi
call fcn.10014660
mov edx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [edx + 0x5c14]
test ecx, ecx
je 0x1005d5f9
push dword [edx + 0x5c0c]
push ecx
push eax
call fcn.100b11a0
mov eax, dword [esp + 0x34]
push dword [eax + 0x5c14]
call fcn.10014690
mov eax, dword [esp + 0x30]
add esp, 0x10
mov edx, dword [esp + 0x28]
mov dword [edx + 0x5c14], eax
mov dword [edx + 0x5c10], esi
push esi
mov esi, dword [esp + 0x2c]
push 0
push dword [esi + 0x5c14]
call fcn.100b1720
mov eax, dword [esi + 0x5c14]
add esp, 0xc
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xb4], eax
mov eax, dword [esi + 0x5c14]
add eax, ecx
mov dword [esp + 0xcc], eax
mov eax, dword [esi + 0x5c14]
lea eax, [eax + ecx*2]
mov dword [esp + 0xe4], eax
lea eax, [ecx + ecx*2]
add eax, dword [esi + 0x5c14]
mov dword [esp + 0xfc], eax
mov eax, dword [esi + 0x5c14]
mov esi, dword [ebp + 8]
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x3c], eax
cmp dword [esi + 0x40], eax
jle 0x1005deba
mov dword [esp + 0x2c], eax
nop dword [eax]
mov ecx, eax
mov edx, 1
and ecx, 0x1f
shl edx, cl
mov ecx, eax
mov eax, dword [esi + 0x30]
sar ecx, 5
test dword [eax + ecx*4], edx
je 0x1005d8da
mov esi, dword [esi + 0x10]
xor eax, eax
add esi, dword [esp + 0x2c]
cmp word [esp + 0x44], ax
mov dword [esp + 0x54], esi
setg al
inc eax
xor edx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
nop dword [eax]
test edx, edx
jne 0x1005d6ca
movzx eax, word [esi + 0x5e]
jmp 0x1005d6ce
movzx eax, word [esi + 0x60]
mov ecx, dword [esp + 0x24]
movzx eax, ax
mov dword [esp + 0x50], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [esp + 0x40], eax
test eax, eax
jle 0x1005d743
mov esi, dword [esp + 0x30]
lea edi, [eax + eax*4]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + esi*8 + 8]
mov eax, ecx
mov esi, dword [esp + 0x54]
cmp dword [edx + edi*8 - 0xc], 0
mov edx, dword [esp + 0x34]
jne 0x1005d73f
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + esi*8 + 8]
mov eax, ecx
mov esi, dword [esp + 0x54]
cmp dword [edx + edi*8 - 8], 0
mov edx, dword [esp + 0x34]
jne 0x1005d73f
mov edi, dword [esp + 0x1c]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x30]
mov dword [edi + eax*8], ecx
mov edi, dword [esp + 0x18]
cmp ecx, 1
jne 0x1005d8bf
test dword [esi], 0x100
jne 0x1005d787
cmp word [esp + 0x44], 0
jg 0x1005d768
movss xmm0, dword [esi + 0x48]
maxss xmm0, dword [esi + 0x44]
jmp 0x1005d77d
test edx, edx
jne 0x1005d778
movss xmm0, dword [esi + 0x40]
maxss xmm0, dword [esi + 0x48]
jmp 0x1005d77d
movss xmm0, dword [esi + 0x44]
comiss xmm0, dword [esi + 0x28]
ja 0x1005d8bf
cmp word [esp + 0x58], 0
jle 0x1005d7a3
mov eax, dword [ebp + 8]
movsx eax, word [eax + 0x1cc]
cmp dword [esp + 0x3c], eax
jge 0x1005d7a3
xor ecx, ecx
jmp 0x1005d7a8
mov ecx, 1
cmp word [esp + 0x44], 0
jle 0x1005d7b8
test edx, edx
jne 0x1005d7b8
xor eax, eax
jmp 0x1005d7bd
mov eax, 2
add eax, ecx
mov dword [esp + 0x48], eax
lea edi, [eax + eax*2]
cmp dword [esp + edi*8 + 0xb0], 0
lea eax, [esp + edi*8 + 0xa4]
lea ecx, [esp + edi*8 + 0xa8]
mov dword [esp + 0x40], eax
lea edx, [esp + edi*8 + 0xac]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
jne 0x1005d810
mov dword [esp + edi*8 + 0xa0], 0x7f7fffff
mov dword [eax], 0x7f7fffff
mov dword [ecx], 0xff7fffff
mov dword [edx], 0xff7fffff
jmp 0x1005d81c
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x50]
mov ecx, eax
mov edx, dword [esp + edi*8 + 0xb4]
and eax, 0x1f
shr ecx, 5
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x50]
mov eax, dword [edx + ecx*4]
bts eax, esi
mov esi, dword [esp + 0x54]
mov dword [edx + ecx*4], eax
inc dword [esp + edi*8 + 0xb0]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
movss xmm0, dword [esp + edi*8 + 0xa0]
mov eax, dword [ecx + eax*8 + 8]
movss xmm4, dword [eax]
comiss xmm0, xmm4
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [eax + 0xc]
jbe 0x1005d881
movss dword [esp + edi*8 + 0xa0], xmm4
mov eax, dword [esp + 0x40]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1005d892
movss dword [eax], xmm1
mov eax, dword [esp + 0x4c]
comiss xmm2, dword [eax]
jbe 0x1005d89f
movss dword [eax], xmm2
mov eax, dword [esp + 0x20]
comiss xmm3, dword [eax]
jbe 0x1005d8ac
movss dword [eax], xmm3
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
bts edi, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edi
inc edx
mov dword [esp + 0x34], edx
cmp edx, dword [esp + 0x38]
jl 0x1005d6c0
mov eax, 0xffff
mov word [esi + 0x5c], ax
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
add dword [esp + 0x2c], 0x70
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esi + 0x40]
jl 0x1005d680
test edi, edi
je 0x1005deba
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0x4a28]
sub edi, 2
cmp edi, ecx
jle 0x1005d993
test ecx, ecx
je 0x1005d928
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, ecx
jmp 0x1005d92d
mov eax, 8
cmp eax, edi
mov esi, edi
cmovg esi, eax
cmp esi, ecx
jle 0x1005d993
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.10014660
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 0x4a2c]
test edx, edx
je 0x1005d983
mov ecx, dword [ecx + 0x4a24]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call fcn.100b11a0
mov eax, dword [esp + 0x34]
push dword [eax + 0x4a2c]
call fcn.10014690
mov eax, dword [esp + 0x48]
add esp, 0x10
mov edx, dword [esp + 0x28]
mov dword [edx + 0x4a2c], eax
mov dword [edx + 0x4a28], esi
mov ecx, dword [esp + 0x24]
mov eax, 2
mov dword [edx + 0x4a24], edi
mov edi, dword [edx + 0x4a2c]
mov dword [esp + 0x30], edi
mov edx, dword [ecx + 4]
dec edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edx
cmp edx, eax
jl 0x1005da1f
mov ecx, edx
and ecx, 0x1f
mov dword [esp + 0x38], ecx
mov esi, eax
mov edi, eax
or eax, 0x1f
sar edi, 5
and esi, 0x1f
mov ecx, 0x1f
cmp edx, eax
cmovle ecx, dword [esp + 0x38]
xor edx, edx
inc ecx
xor eax, eax
bts edx, ecx
cmp ecx, 0x20
cmovae eax, edx
xor ecx, ecx
xor edx, eax
bts ecx, esi
xor eax, eax
dec edx
cmp esi, 0x20
cmovae eax, ecx
xor ecx, eax
mov eax, dword [esp + 0x14]
neg ecx
and edx, ecx
or dword [eax + edi*4], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
add eax, 0x20
and eax, 0xffffffe0
mov dword [esp + 0x20], eax
cmp eax, edx
jle 0x1005d9c5
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
movaps xmm2, xmmword [0x100ee5b0]
movzx edx, word [edi + 0x1d4]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [eax + ecx*4]
btr eax, edx
mov edx, dword [esp + 0x14]
mov dword [edx + ecx*4], eax
xor eax, eax
cmp word [esp + 0x44], ax
mov ecx, dword [esp + 0x24]
movups xmm0, xmmword [edi + 0x12c]
setg al
add eax, 2
mov esi, dword [ecx + 4]
sub esi, eax
xor edi, edi
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x18], esi
movss xmm1, dword [esp + 0x7c]
movss xmm3, dword [esp + 0x78]
movss xmm7, dword [esp + 0x70]
mov dword [esp + 0x34], edi
nop word [eax + eax]
lea eax, [edi + edi*2]
shl eax, 3
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + eax + 0xb0]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x1005ddc7
movups xmm0, xmmword [esp + eax + 0xa0]
mov ecx, edi
movups xmmword [esp + 0x60], xmm0
and ecx, 1
je 0x1005dad4
cmp word [esp + 0x88], 0
jle 0x1005dad4
movss xmm6, dword [esp + 0x60]
jmp 0x1005dae2
movss xmm6, dword [esp + 0x60]
comiss xmm7, xmm6
ja 0x1005dae2
movaps xmm6, xmm7
and edi, 2
je 0x1005daf7
cmp word [esp + 0x44], 0
jle 0x1005daf7
movss xmm5, dword [esp + 0x64]
jmp 0x1005db0b
movss xmm5, dword [esp + 0x64]
movss xmm0, dword [esp + 0x74]
comiss xmm0, xmm5
ja 0x1005db0b
movaps xmm5, xmm0
movss xmm4, dword [esp + 0x68]
test ecx, ecx
je 0x1005db1d
comiss xmm4, xmm3
jae 0x1005db1d
movaps xmm4, xmm3
test edi, edi
je 0x1005db3d
mov ecx, dword [ebp + 8]
test dword [ecx + 4], 0x20000
jne 0x1005db3d
movss xmm3, dword [esp + 0x6c]
comiss xmm3, xmm1
jae 0x1005db43
movaps xmm3, xmm1
jmp 0x1005db43
movss xmm3, dword [esp + 0x6c]
sub esi, dword [esp + eax + 0xb0]
xor ecx, ecx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x5c]
sar esi, 2
mov dword [esp + 0x4c], esi
test esi, esi
jle 0x1005dce8
cmp esi, 2
jb 0x1005dcd0
mov edi, dword [esp + eax + 0xb4]
lea edx, [esp + eax + 0xb4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], edx
lea eax, [eax + esi*4]
add eax, 0xfffffffc
mov dword [esp + 0x20], eax
lea eax, [esi - 1]
lea eax, [edi + eax*4]
cmp dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
ja 0x1005dba4
cmp eax, edi
jae 0x1005dcc8
cmp dword [esp + 0x14], edx
ja 0x1005dbb2
cmp eax, edx
jae 0x1005dcc8
cmp esi, 0x10
jb 0x1005dc83
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x1005dbc9
dec eax
or eax, 0xfffffff0
inc eax
mov edx, esi
mov esi, 0x20
sub edx, eax
mov eax, 0xfffffff0
sub eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, 0x10
sub eax, dword [esp + 0x14]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
add edx, esi
mov eax, 0xffffffe0
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
movups xmm0, xmmword [edx - 0x20]
add eax, edx
lea esi, [esi + 0x40]
add ecx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x38]
add eax, edx
pandn xmm1, xmm2
pand xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x48]
movups xmm0, xmmword [edx - 0x10]
add eax, edx
pandn xmm1, xmm2
pand xmm1, xmm0
movups xmmword [edx - 0x10], xmm1
movups xmm0, xmmword [edx]
movups xmm1, xmmword [esi + edi - 0x40]
pandn xmm1, xmm2
pand xmm1, xmm0
movups xmmword [edx], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [esp + 0x20]
movups xmm0, xmmword [edx + 0x10]
pandn xmm1, xmm2
pand xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [esp + 0x58]
jl 0x1005dc03
mov esi, dword [esp + 0x4c]
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x1005dcbe
mov edx, dword [esp + 0x40]
mov edi, dword [edx]
mov eax, esi
and eax, 0x80000001
jns 0x1005dc93
dec eax
or eax, 0xfffffffe
inc eax
mov edx, esi
sub edx, eax
mov eax, dword [esp + 0x14]
nop dword [eax + eax]
movq xmm1, qword [edi + ecx*4]
movq xmm0, qword [eax + ecx*4]
pandn xmm1, xmm2
pand xmm1, xmm0
movq qword [eax + ecx*4], xmm1
add ecx, 2
cmp ecx, edx
jl 0x1005dca0
mov eax, dword [esp + 0x1c]
cmp ecx, esi
jge 0x1005dce8
jmp 0x1005dccc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + eax + 0xb4]
mov eax, dword [eax + ecx*4]
not eax
and dword [edx + ecx*4], eax
inc ecx
mov eax, dword [esp + 0x1c]
cmp ecx, esi
jl 0x1005dcd0
mov ecx, dword [esp + 0x24]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x1005ddad
mov dword [esp + 0x3c], edx
nop dword [eax + eax]
cmp dword [esp + 0x2c], 0
je 0x1005ddad
mov eax, dword [esp + eax + 0xb4]
mov esi, edx
sar esi, 5
mov ecx, edx
mov dword [esp + 0x38], eax
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x1005dd96
mov eax, dword [esp + 0x38]
btr edi, ecx
dec dword [esp + 0x2c]
movss dword [esp + 0x90], xmm6
movss dword [esp + 0x94], xmm5
mov dword [eax + esi*4], edi
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
movss dword [esp + 0x98], xmm4
movss dword [esp + 0x9c], xmm3
mov ecx, dword [eax + 0x10]
add ecx, dword [esp + 0x3c]
movups xmm0, xmmword [esp + 0x90]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm0
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [esp + 0x30], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov ecx, dword [esp + 0x24]
inc edx
add dword [esp + 0x3c], 0x18
mov eax, dword [esp + 0x1c]
cmp edx, dword [ecx + 4]
jl 0x1005dd00
movss xmm1, dword [esp + 0x7c]
movss xmm3, dword [esp + 0x78]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jmp 0x1005ddcb
mov ecx, dword [esp + 0x24]
cmp edi, 1
jne 0x1005de1c
cmp word [esp + 0x8c], 0
jle 0x1005de1c
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x30]
mov edx, esi
add esi, 0x18
inc edi
mov dword [esp + 0x30], esi
movzx eax, word [eax + 0x1d4]
mov esi, dword [esp + 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
movq qword [edx + 0x10], xmm0
mov edx, dword [esp + 0x14]
jmp 0x1005da83
inc edi
mov dword [esp + 0x34], edi
cmp edi, 4
jl 0x1005da90
mov eax, dword [ecx + 4]
xor esi, esi
test eax, eax
jle 0x1005de96
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
nop dword [eax + eax]
cmp dword [esp + 0x18], 0
je 0x1005de96
mov ecx, esi
mov edx, 1
and ecx, 0x1f
mov eax, esi
shl edx, cl
mov ecx, dword [esp + 0x14]
sar eax, 5
test dword [ecx + eax*4], edx
je 0x1005de85
mov eax, dword [esp + 0x24]
mov ecx, edi
add edi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [esp + 0x2c]
dec dword [esp + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x24]
inc esi
add dword [esp + 0x2c], 0x18
mov eax, dword [ecx + 4]
cmp esi, eax
jl 0x1005de40
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x4a2c]
mov eax, dword [ecx + 0x10]
add eax, 0x30
push eax
call fcn.100b11a0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret