Function at 0x1004d39d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x102db678]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd4], esi
lea edx, [esi + 0x24]
push edx
push dword [ebp + 0xc]
lea ecx, [esi + 0x30]
mov dword [ebp - 0xdc], edx
push dword [esi + 0x1c]
mov dword [ebp - 0xd8], ecx
push ecx
push eax
push dword [esi + 0x28]
call fcn.1004cf4b
add esp, 0x18
cmp dword [esi + 0x28], ebx
je 0x1004d41b
push 0x101720a0
lea ecx, [ebp - 0xc8]
call fcn.10026f05
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1002b681
push 3
jmp 0x1004d428
lea ecx, [ebp - 0xcc]
call fcn.10026fdf
push 4
mov ecx, eax
pop eax
push ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc0], eax
call fcn.10026e6c
mov eax, dword [ebp - 0xc0]
test al, 4
je 0x1004d461
and eax, 0xfffffffb
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xc0], eax
call fcn.1002716d
mov eax, dword [ebp - 0xc0]
test al, 2
je 0x1004d47f
and eax, 0xfffffffd
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], eax
call fcn.1002716d
mov eax, dword [ebp - 0xc0]
test al, 1
je 0x1004d48e
lea ecx, [ebp - 0xc8]
call fcn.1002716d
mov edx, dword [ebp - 0xc4]
test edx, edx
je 0x1004d49d
mov eax, dword [edx + 4]
jmp 0x1004d49f
mov eax, ebx
cmp eax, 0x10
jb 0x1004d63f
cmp dword [esi + 0x10], 2
push 8
pop ecx
jne 0x1004d519
mov eax, dword [ebp - 0xd4]
lea edi, [ebp - 0x24]
mov esi, 0x10172034
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1c]
mov edi, dword [ebp - 0xd8]
push ecx
push ecx
mov eax, esp
push ecx
push ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov eax, esp
lea ecx, [ebp - 0x24]
mov dword [eax], ecx
mov dword [eax + 4], 0x20
call fcn.10075c47
mov eax, dword [ebp - 0xc4]
add esp, 0x10
lea edx, [eax + 0xc]
test eax, eax
jne 0x1004d4fd
mov edx, 0x102d42f0
lea esi, [ebp - 0x24]
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x1004d63f
inc ecx
cmp ecx, 4
jne 0x1004d502
jmp 0x1004d63d
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x64]
push 8
pop ecx
rep stosd dword es:[edi], eax
test edx, edx
je 0x1004d52f
mov eax, dword [edx + 4]
push 0x20
pop ecx
cmp eax, ecx
cmovb ecx, eax
test edx, edx
je 0x1004d540
add edx, 0xc
jmp 0x1004d545
mov edx, 0x102d42f0
push ecx
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.10147030
add esp, 0xc
mov dword [ebp - 0xc0], 0x13
mov edx, dword [esi + 0x1c]
mov ecx, ebx
test edx, edx
je 0x1004d579
mov al, byte [esi + ecx + 0x30]
xor al, byte [ebp - 0xc0]
mov byte [ebp + ecx - 0x64], al
inc ecx
cmp ecx, edx
jb 0x1004d566
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x64]
push ecx
push ecx
mov dword [eax], ecx
lea ecx, [ebp - 0x44]
mov dword [eax + 4], edx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], 0x20
call fcn.10075c47
add esp, 0x10
sub dword [ebp - 0xc0], 1
jns 0x1004d55d
lea eax, [ebp - 0x138]
push eax
call fcn.10075e50
push 0x16
mov esi, eax
lea edi, [ebp - 0xbc]
pop ecx
rep movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov dword [eax], 0x10172034
mov dword [eax + 4], 0x20
lea eax, [ebp - 0xbc]
push eax
call fcn.10075e7b
mov ecx, dword [ebp - 0xdc]
add esp, 0xc
mov eax, dword [ecx]
test eax, eax
je 0x1004d5ef
mov eax, dword [eax + 4]
jmp 0x1004d5f1
mov eax, ebx
test eax, eax
je 0x1004d615
lea eax, [ebp - 0xe0]
push eax
call fcn.10025f42
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0xbc]
push eax
call fcn.10075e7b
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.10075cff
pop ecx
pop ecx
lea edx, [ebp - 0x44]
mov ecx, ebx
lea esi, [ebp - 0x24]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x1004d63f
inc ecx
cmp ecx, 4
jne 0x1004d62f
mov bl, 1
lea ecx, [ebp - 0xc4]
call fcn.1002716d
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101452d9
leave
ret 8