Function at 0x4dfb7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, dword [edi + 0x70]
je 0x4dfb9e
cmp eax, dword [edi + 0x74]
je 0x4dfb9e
and dword [ebp + 8], 0
jmp 0x4dfba5
mov dword [ebp + 8], 1
test byte [edi + 0xa8], 2
je 0x4dfbcc
cmp eax, dword [edi + 0x68]
je 0x4dfbcc
cmp word [ebp + 8], 0
jne 0x4dfbcc
mov esi, dword [edi + 0xc8]
mov dword [ebp - 4], 1
mov dword [ebp + 0x18], esi
jmp 0x4dfbdb
mov eax, dword [edi + 0xc0]
and dword [ebp - 4], 0
mov dword [ebp + 0x18], eax
mov esi, eax
mov ebx, dword [ebp + 0x20]
cmp dword [ebx], esi
jge 0x4dfbed
push 0x4001001b
call fcn.00593610
pop ecx
xor ecx, ecx
mov dword [ebx], esi
cmp esi, ecx
je 0x4dfe5e
cmp word [ebp - 4], cx
je 0x4dfc07
mov eax, dword [edi + 0xcc]
jmp 0x4dfc0d
mov eax, dword [edi + 0xac]
cmp word [ebp - 4], cx
mov dword [ebp - 8], eax
je 0x4dfc1e
mov eax, dword [edi + 0xc4]
jmp 0x4dfc24
mov eax, dword [edi + 0xbc]
push 2
push 0x10
push 0x68066c
push ecx
lea ecx, [ebp - 0xe0]
push ecx
push esi
push eax
call fcn.004e0397
push str.WebBuy
call fcn.005968b1
add esp, 0x20
cmp word [edi + 0xd8], ax
jne 0x4dfd01
mov eax, dword [edi + 0xe4]
push 1
mov dword [ebp - 4], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0059b4a2
mov eax, dword [edi + 0xdc]
pop ecx
test eax, eax
pop ecx
jbe 0x4dfc84
mov ecx, dword [edi + 0xe0]
test ecx, ecx
je 0x4dfc84
push eax
push ecx
jmp 0x4dfc8b
push 7
push 0x68067c
lea eax, [ebp - 0x7c]
push eax
call fcn.0059b551
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push 0
push eax
push 0
push edi
call fcn.004d867e
add esp, 0x14
test ax, ax
je 0x4dfcc3
push dword [ebp - 0xc]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x10]
push eax
call fcn.0059b551
add esp, 0xc
mov eax, dword [ebp - 4]
push 4
add eax, 0x3f
and al, 0x80
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0059b551
lea eax, [ebp - 0x7c]
push eax
call fcn.0059bafd
mov ecx, dword [ebx]
add esp, 0x10
xor eax, eax
test ecx, ecx
jle 0x4dfd01
mov dl, byte [ebp + eax - 0x23]
xor byte [ebp + eax - 0xe0], dl
inc eax
cmp eax, ecx
jl 0x4dfcf1
cmp word [ebp + 8], 0
jne 0x4dfd7e
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push esi
push ebx
push edi
call fcn.004dbee1
mov ecx, dword [edi + 0x18]
add esp, 0xc
shl ecx, 0x18
neg si
sbb esi, esi
mov edx, ebx
and esi, 0x800000
add edx, ecx
add esi, edx
je 0x4dfd5e
cmp word [ebp + 0xc], 0
jne 0x4dfd5e
mov esi, dword [eax + 0x10]
mov eax, esi
mov ebx, esi
shr eax, 0x17
and eax, 1
and ebx, 0x7fffff
push eax
push ebx
push edi
mov dword [ebp + 0xc], eax
call fcn.004dbee1
add esp, 0xc
test esi, esi
jne 0x4dfd32
cmp esi, dword [edi + 0xb8]
je 0x4dfd73
test esi, esi
je 0x4dfd73
mov ax, word [eax + 2]
mov esi, dword [ebp + 0x18]
jmp 0x4dfd84
mov eax, dword [ebp + 0x20]
and dword [eax], 0
jmp 0x4dfe5e
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], 0
jne 0x4dfda2
lea eax, [ebp - 0xe0]
push esi
push eax
push dword [ebp + 0x1c]
call fcn.0059acbb
add esp, 0xc
jmp 0x4dfe5e
xor edi, edi
lea esi, [ebp + esi - 0xe5]
cmp word [ebp + 8], di
je 0x4dfdc3
cmp word [ebp + 0xc], di
jne 0x4dfdc3
push 5
push esi
call fcn.0059ac37
pop ecx
pop ecx
jmp 0x4dfe0a
cmp dword [ebp - 8], 3
jne 0x4dfdf0
xor ebx, 0x3569ac
xor eax, 0xca96
mov byte [esi], bl
inc esi
mov ecx, ebx
mov byte [esi], al
inc esi
shr ecx, 8
mov byte [esi], cl
xor ecx, ecx
inc esi
mov cl, ah
shr ebx, 0x10
mov byte [esi], cl
mov byte [esi + 1], bl
jmp 0x4dfe0a
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov byte [esi], bl
inc esi
xor ecx, ecx
mov cl, ah
mov byte [esi], al
mov byte [esi + 1], cl
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.0059b4a2
push dword [ebp + 0x18]
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0059b551
add esp, 0x14
cmp dword [ebp - 8], 3
jl 0x4dfe43
push 4
lea eax, [ebp - 0x7c]
push str.sAlT
push eax
call fcn.0059b551
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call fcn.0059bafd
push dword [ebp + 0x18]
lea eax, [ebp - 0x23]
push eax
push dword [ebp + 0x1c]
call fcn.0059acbb
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret