Function at 0x479398
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x479779
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [ebp + 0x18]
call fcn.00478848
test al, al
jne 0x4793ea
cmp byte [ebp + 0x10], 0
je 0x4793ea
mov ecx, 0x740
mov edx, 0x479794
mov eax, 0x4797c4
call fcn.004049d0
movzx eax, byte [ebp + 0x18]
call fcn.00472110
mov edi, eax
test edi, edi
je 0x479403
mov eax, edi
call dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x479419
mov ecx, 0x4797e0
mov dl, 1
mov eax, dword [0x4078d8]
call fcn.0040c7dc
call fcn.004043d8
cmp byte [ebp + 0x10], 0
je 0x47943b
mov eax, dword [ebp - 0x1c]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [ebp + 0xc]
add edx, edx
add edx, edx
add edx, edx
add eax, edx
add eax, 0x10
inc eax
cmp esi, eax
jae 0x479461
mov eax, dword [ebp - 0x1c]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [ebp + 0xc]
add edx, edx
add edx, edx
add edx, edx
add eax, edx
add eax, 8
inc eax
cmp esi, eax
jb 0x47945d
cmp byte [ebp + 0x10], 0
je 0x479461
xor ebx, ebx
jmp 0x479463
mov bl, 1
test bl, bl
je 0x47975e
lea eax, [esi + 7]
shr eax, 3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
call fcn.00477150
cmp eax, esi
setle bl
test bl, bl
je 0x47975e
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.0047858c
cmp byte [ebp + 0x10], 0
je 0x4794e3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
cmp byte [eax + edx - 1], 0xcc
sete bl
test bl, bl
je 0x4794f1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
movzx eax, byte [eax + edx - 2]
sub al, 1
jb 0x4794d2
sub al, 0x30
je 0x4794d6
jmp 0x4794df
xor ebx, ebx
jmp 0x4794f1
cmp byte [ebp + 0x18], 2
sete bl
jmp 0x4794f1
xor ebx, ebx
jmp 0x4794f1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
cmp byte [eax + edx - 1], 0xbc
sete bl
test bl, bl
je 0x47975e
cmp byte [ebp + 0x10], 0
je 0x479508
mov dword [ebp - 0x2c], 2
jmp 0x47950f
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 4]
call fcn.00404f0c
mov edx, dword [ebp - 0x20]
inc edx
sub edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x2c]
lea eax, [eax + edx - 1]
lea edx, [ebp - 0x6c]
mov ecx, dword [ebp - 0x1c]
call fcn.00402f08
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.0040513c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x47954d
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
call fcn.00404f0c
push eax
push ebx
lea eax, [ebp - 0x6c]
movzx ecx, byte [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.0047894c
mov eax, dword [ebp - 8]
test eax, eax
je 0x479572
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jbe 0x4795a0
mov esi, 1
lea eax, [ebp - 4]
call fcn.00404f0c
lea eax, [eax + esi - 1]
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
mov edx, dword [ebp - 8]
xor al, byte [edx + esi - 1]
pop edx
mov byte [edx], al
inc esi
dec ebx
jne 0x47957d
cmp dword [ebp - 0x24], 0
jbe 0x4795c5
lea eax, [ebp - 4]
call fcn.00404f0c
mov ecx, 8
sub ecx, dword [ebp - 0x24]
mov dl, 1
shl dl, cl
dec edx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx]
and dl, cl
mov byte [eax], dl
mov esi, 1
jmp 0x4795cd
inc esi
mov eax, dword [ebp - 4]
cmp byte [eax + esi - 1], 0
jne 0x4795e7
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x2c]
cmp esi, eax
jbe 0x4795cc
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x2c]
cmp esi, eax
setbe bl
test bl, bl
je 0x47975e
mov edx, dword [ebp - 4]
cmp byte [edx + esi - 1], 1
jne 0x479655
sub eax, esi
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx]
jbe 0x479629
mov ecx, 0x479818
mov dl, 1
mov eax, dword [0x4078d8]
call fcn.0040c7dc
call fcn.004043d8
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x2c]
sub eax, esi
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
lea eax, [ebp - 4]
call fcn.00404f0c
add eax, esi
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x10]
call fcn.00402f08
jmp 0x479657
xor ebx, ebx
test bl, bl
je 0x47975e
xor eax, eax
mov dword [ebp - 0x28], eax
test edi, edi
je 0x47967b
push 0
push 4
lea ecx, [ebp - 0x28]
mov dl, 1
mov eax, edi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x479691
mov ecx, 0x4797e0
mov dl, 1
mov eax, dword [0x4078d8]
call fcn.0040c7dc
call fcn.004043d8
xor eax, eax
push ebp
push 0x479734
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, eax
add eax, eax
add eax, eax
call fcn.00478948
mov dword [ebp - 0x28], eax
push 0
push 4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cdq
push edx
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x1c]
cdq
push edx
push eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0xc], 0
jbe 0x479713
mov eax, dword [ebp + 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 4]
call fcn.00404f0c
mov edx, dword [ebp - 0x20]
inc edx
sub edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x2c]
lea edx, [eax + edx - 1]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47973b
mov eax, dword [ebp - 0x18]
call fcn.00403b64
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479780
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a14
ret