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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x338
call fcn.0065d180
mov eax, dword [0x746694]
xor eax, esp
mov dword [esp + 0x334], eax
cmp dword [ebp + 0x18], 0x100000
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x44], eax
mov esi, 0x28
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x78], edx
mov edi, 0x40
mov edx, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0xc], 8
mov byte [esp + 0xb], 1
jae 0x597a4a
test edx, edx
jne 0x5971da
xor eax, eax
jmp 0x5971dc
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, 0x2a0
jg 0x597295
je 0x597267
cmp eax, 4
je 0x597227
cmp eax, 0x40
jne 0x5972a6
lea ecx, [esp + 0x90]
call fcn.0048fb70
test eax, eax
jle 0x597a4a
mov dword [esp + 0x30], 0x596e00
mov eax, 0x14
mov dword [esp + 0x14], 0x48f9f0
jmp 0x597347
lea eax, [esp + 0x90]
push eax
call fcn.00481480
add esp, 4
test eax, eax
jle 0x597a4a
mov esi, 0x30
mov dword [esp + 0x30], 0x596d80
mov dword [esp + 0x14], 0x481340
mov eax, 0x10
mov dword [esp + 0x58], esi
mov byte [esp + 0xb], 0
jmp 0x597347
lea ecx, [esp + 0x90]
call fcn.0048eb00
test eax, eax
jle 0x597a4a
mov dword [esp + 0x30], 0x596ea0
mov eax, 0x20
mov dword [esp + 0x14], 0x48ec50
jmp 0x597347
sub eax, 0x2a1
je 0x59730d
sub eax, 1
je 0x5972f5
sub eax, 1
je 0x5972ca
test ecx, ecx
je 0x597a4a
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x90]
call fcn.0048eaa0
test eax, eax
jle 0x597a4a
mov dword [esp + 0x30], 0x596ea0
mov eax, 0x1c
mov dword [esp + 0x14], 0x48ec50
jmp 0x597347
lea ecx, [esp + 0x90]
call fcn.0048eff0
test eax, eax
jle 0x597a4a
mov eax, edi
jmp 0x597326
lea ecx, [esp + 0x90]
call fcn.0048ef40
test eax, eax
jle 0x597a4a
mov eax, 0x30
mov edi, 0x80
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], 0x48f8e0
mov dword [esp + 0x30], 0x596f90
cmp byte [ebp + 0x24], 0
mov ecx, 0xd
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ecx
je 0x597370
mov ecx, dword [ebp + 0x20]
add ecx, 0xb
mov dword [esp + 0x24], 2
add ecx, esi
mov dword [esp + 0x4c], ecx
jmp 0x597380
add eax, 0xff
xor edx, edx
add eax, edi
div edi
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
sub esi, dword [esp + 0x1c]
dec eax
mov ecx, dword [esp + 0xc]
xor edx, edx
add ecx, esi
add ecx, edi
add eax, ecx
mov ecx, dword [ebp + 0x14]
div edi
add ecx, esi
xor edx, edx
mov esi, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, ecx
div esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x44], edx
xor edx, edx
mov dword [esp + 0x34], edi
div esi
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp byte [ebp + 0x24], cl
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
setne cl
add ecx, eax
mov dword [esp + 0x2c], ecx
cmp edx, ecx
mov ecx, edx
jbe 0x5973f4
sub ecx, eax
mov edi, ecx
imul edi, esi
mov dword [esp + 0x34], edi
jmp 0x5973f6
sub ecx, eax
cmp dword [esp + 0x2c], edx
sbb eax, eax
and eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
shl eax, 3
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x18], eax
jne 0x5974db
lea eax, [eax + esi*8]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1bc]
push 0
push eax
call fcn.006607e0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp eax, 0x80
ja 0x597a4a
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x1c0]
push eax
call fcn.00660260
movaps xmm2, xmmword [str.6666666666666666]
add esp, 0xc
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x1b8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1b8], xmm1
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1c8], xmm1
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [esp + eax + 0x1d8], xmm0
movups xmm0, xmmword [esp + eax + 0x1e8]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x597460
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x28], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [esp + 0xb], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], eax
je 0x597544
mov eax, dword [esp + 0xc]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.006607e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov byte [esp + ecx + 0x170], al
mov eax, dword [esp + 0x38]
mov byte [esp + ecx + 0x171], al
mov eax, dword [esp + 0x1c]
mov byte [esp + ecx + 0x172], al
mov eax, dword [esp + 0x24]
mov byte [esp + ecx + 0x173], al
jmp 0x597587
push dword [esp + 0xc]
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.006607e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov byte [esp + ecx + 0x16f], al
mov eax, dword [esp + 0x38]
mov byte [esp + ecx + 0x16e], al
mov eax, dword [esp + 0x1c]
mov byte [esp + ecx + 0x16d], al
mov eax, dword [esp + 0x24]
mov byte [esp + ecx + 0x16c], al
add esp, 0xc
test edi, edi
je 0x5976d3
cmp byte [ebp + 0x24], 0
je 0x59764e
mov eax, dword [esp + 0x4c]
cmp eax, esi
jbe 0x597a4a
push dword [esp + 0x48]
sub eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x1c]
push dword [esp + 0x20]
mov eax, dword [esp + 0x54]
add eax, esi
push eax
lea eax, [esp + 0x248]
push eax
call fcn.00660260
mov eax, esi
sub eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x254]
add eax, dword [esp + 0x34]
push eax
call fcn.00660260
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x3c]
xor edx, edx
mov eax, edi
div esi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x5976d3
mov edi, dword [esp + 0x38]
sub edi, dword [esp + 0x18]
add edi, esi
dec eax
mov dword [esp + 0x10], eax
nop dword [eax + eax]
lea eax, [esp + 0x90]
push edi
push eax
call dword [esp + 0x1c]
add esp, 8
add edi, esi
sub dword [esp + 0x10], 1
jne 0x597630
jmp 0x5976cf
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x240], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x244], al
lea eax, [esi - 0xd]
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x24d]
movq qword [esp + 0x240], xmm0
push eax
call fcn.00660260
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0xa0]
push eax
call dword [esp + 0x28]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x5976d3
lea edi, [esi - 0xd]
add edi, dword [esp + 0x38]
dec eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x90]
push edi
push eax
call dword [esp + 0x1c]
add esp, 8
add edi, esi
sub dword [esp + 0x10], 1
jne 0x5976b6
mov edi, dword [esp + 0x34]
push 0x40
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.006607e0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x70], eax
cmp ecx, eax
ja 0x59798a
mov eax, dword [esp + 0x44]
neg dword [esp + 0x44]
lea edx, [eax + 1]
shr eax, 0x1f
mov dword [esp + 0x60], eax
mov eax, edx
shr eax, 0x1f
mov dword [esp + 0x68], edx
mov edx, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
sub edx, eax
sub eax, esi
mov dword [esp + 0x6c], edx
lea eax, [esp + eax + 0x168]
mov dword [esp + 0x18], eax
mov eax, ecx
xor esi, esi
xor eax, dword [esp + 0x64]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [esp + 0x74]
neg dl
mov dword [esp + 0x2c], edx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [esp + 0x34], ecx
not cl
or cl, dl
mov byte [esp + 0x23], cl
mov ecx, dword [esp + 0x44]
movd xmm0, eax
mov eax, dword [esp + 0x18]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
nop dword [eax]
mov edx, dword [esp + 0x4c]
mov byte [esp + 0xb], 0
cmp edi, edx
jae 0x5977b3
mov eax, dword [esp + 0x48]
jmp 0x5977c2
mov eax, dword [ebp + 0x18]
add eax, edx
cmp edi, eax
jae 0x5977c9
mov eax, dword [esp + 0x38]
sub eax, edx
mov al, byte [eax + edi]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x60]
mov edx, esi
shr ecx, 0x1f
inc edi
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, dword [esp + 0x2c]
xor cl, dl
movzx eax, al
dec cl
movzx ecx, cl
and ecx, eax
mov dword [esp + 0x40], ecx
not ecx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
and al, byte [esp + 0xb]
and cl, 0x80
or cl, al
mov al, dl
xor al, byte [esp + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, esi
sub ecx, dword [esp + 0x68]
shr ecx, 0x1f
xor cl, byte [esp + 0x10]
or cl, al
xor cl, dl
mov edx, dword [esp + 0x40]
dec cl
and cl, byte [esp + 0x2c]
not cl
and cl, byte [esp + 0x23]
and dl, cl
cmp esi, dword [esp + 0x6c]
jb 0x59785d
mov eax, dword [esp + 0x34]
movzx eax, al
mov dword [esp + 0x40], eax
not eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
and cl, byte [eax]
mov eax, dword [esp + 0xc]
and dl, al
or dl, cl
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x24]
inc ecx
mov byte [esp + esi + 0x2b8], dl
inc esi
mov dword [esp + 0x28], ecx
cmp esi, dword [esp + 0x3c]
jb 0x5977a0
lea eax, [esp + 0x2b8]
push eax
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x1c]
lea eax, [esp + 0x2c0]
push eax
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x59795b
movaps xmm2, xmmword [esp + 0x80]
mov ecx, edx
and ecx, 0xffffffc0
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x178]
movups xmm1, xmmword [esp + eax + 0x2b8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x178], xmm1
movups xmm0, xmmword [esp + eax + 0x188]
movups xmm1, xmmword [esp + eax + 0x2c8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x188], xmm1
movups xmm0, xmmword [esp + eax + 0x198]
movups xmm1, xmmword [esp + eax + 0x2d8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x198], xmm1
movups xmm1, xmmword [esp + eax + 0x2e8]
movups xmm0, xmmword [esp + eax + 0x1a8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x1a8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x5978d0
cmp eax, edx
jae 0x597977
nop
mov cl, byte [esp + eax + 0x2b8]
and cl, byte [esp + 0x34]
or byte [esp + eax + 0x178], cl
inc eax
cmp eax, edx
jb 0x597960
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
cmp ecx, dword [esp + 0x70]
jbe 0x597735
push 0x18
mov dword [0x7474ac], 0
call fcn.00668b52
mov esi, eax
add esp, 4
test esi, esi
je 0x597a3a
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
test eax, eax
je 0x5979bd
mov eax, dword [eax]
push 0
push eax
push esi
call fcn.00471d90
add esp, 0xc
test eax, eax
jle 0x597a3a
cmp byte [ebp + 0x24], 0
je 0x597a60
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x1b8]
push edi
push 0x5c
push eax
call fcn.006607e0
mov eax, dword [ebp + 0x20]
add esp, 0xc
test eax, eax
je 0x597a07
push eax
push dword [esp + 0x60]
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x597a3a
push edi
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x597a3a
push dword [esp + 0x1c]
lea eax, [esp + 0x17c]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jg 0x597b0a
mov ecx, esi
call fcn.00471c60
push esi
call fcn.00663ce7
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
movaps xmm2, xmmword [0x736150]
xor eax, eax
mov ecx, dword [esp + 0x3c]
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x1b8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1b8], xmm1
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1c8], xmm1
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1d8], xmm1
movups xmm0, xmmword [esp + eax + 0x1e8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x597a70
push ecx
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x597a3a
push dword [esp + 0x1c]
lea eax, [esp + 0x17c]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x597a3a
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.00472020
add esp, 4
test eax, eax
je 0x597b2f
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x597b2f
mov eax, dword [esp + 0x54]
mov dword [ecx], eax
mov ecx, esi
call fcn.00471c60
push esi
call fcn.00663ce7
mov ecx, dword [esp + 0x340]
add esp, 4
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret