Function at 0x10047c50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xe9c
mov ecx, dword [0x107ab964]
push ebx
push ebp
mov ebp, dword [esp + 0xea8]
mov eax, dword [ecx]
push esi
push edi
push ebp
call dword [eax + 0x20]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jl 0x10047eb1
mov edx, dword [0x107ab964]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
push ebp
push edx
call fcn.1000fc50
add esp, 0xc
test eax, eax
je 0x10047eb1
mov edx, dword [esp + 0x34]
mov ecx, 0x380
xor eax, eax
lea edi, [esp + 0xac]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xb0]
push eax
mov eax, dword [0x107ab964]
push ecx
push 0xe00
push 0xe00
push edx
push esi
push ebp
push eax
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x10047eb1
cmp dword [esp + 0x14], 0xe00
jne 0x10047eb1
cmp byte [esp + 0xac], 0xe8
jne 0x10047eb1
mov eax, dword [esp + 0xad]
test eax, eax
jne 0x10047eb1
cmp byte [esp + 0xb1], 0x5d
jne 0x10047eb1
cmp word [esp + 0xb2], 0xed81
jne 0x10047eb1
cmp word [esp + 0xb8], 0x858d
jne 0x10047eb1
cmp word [esp + 0xbe], 0x9d8d
jne 0x10047eb1
cmp byte [esp + 0xc4], 0xb9
jne 0x10047eb1
cmp byte [esp + 0xc9], 0x33
jne 0x10047eb1
cmp byte [esp + 0xcb], 0xe8
jne 0x10047eb1
cmp dword [esp + 0xcc], 0x1000
jae 0x10047eb1
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0x34]
mov eax, ecx
mov dl, byte [esp + 0xc5]
sub eax, esi
mov bl, dl
lea esi, [eax + edi + 5]
mov eax, dword [esp + 0xba]
sub eax, ecx
add eax, esi
test dl, dl
je 0x10047eb1
mov edx, dword [esp + 0xc0]
sub edx, ecx
sub edx, eax
add edx, esi
cmp edx, 0xe00
ja 0x10047eb1
cmp eax, edi
jae 0x10047dec
lea ecx, [edi + 0x900]
cmp eax, ecx
ja 0x10047eb1
sub eax, edi
mov ecx, eax
cmp ecx, 0xdf0
jae 0x10047e11
mov dl, byte [esp + ecx + 0xac]
xor dl, bl
mov byte [esp + ecx + 0xac], dl
inc ecx
cmp ecx, 0xdf0
jb 0x10047df8
cmp eax, 0xdf0
jae 0x10047e45
cmp byte [esp + eax + 0xac], 0xe8
jne 0x10047e34
mov ecx, dword [esp + eax + 0xad]
mov edx, 0xe00
sub edx, eax
cmp ecx, edx
jb 0x10047e3e
inc eax
cmp eax, 0xdf0
jb 0x10047e18
jmp 0x10047e45
add eax, dword [esp + eax + 0xad]
cmp eax, 0xd00
ja 0x10047eb1
cmp eax, 0xde0
jae 0x10047eb1
mov esi, 0xbd8b
mov bl, 0x59
mov edx, 0x8f89
mov ecx, 0x8789
cmp byte [esp + eax + 0xac], 0xb9
jne 0x10047ea9
cmp byte [esp + eax + 0xb1], 0xf3
jne 0x10047ea9
cmp word [esp + eax + 0xb3], si
jne 0x10047ea9
cmp byte [esp + eax + 0xb9], 0x58
jne 0x10047ea9
cmp byte [esp + eax + 0xba], bl
jne 0x10047ea9
cmp word [esp + eax + 0xbb], dx
jne 0x10047ea9
cmp word [esp + eax + 0xc1], cx
je 0x10047ebe
inc eax
cmp eax, 0xde0
jb 0x10047e64
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe9c
ret
mov eax, dword [esp + eax + 0xbd]
cmp eax, 0xde0
ja 0x10047eb1
test eax, eax
jle 0x10047eb1
mov ebx, dword [esp + eax + 0xac]
cmp ebx, edi
ja 0x10047eb1
test ebx, ebx
jl 0x10047eb1
cmp ebx, dword [esp + 0x5c]
ja 0x10047eb1
mov eax, dword [0x107ab964]
push edi
push ebp
push eax
call fcn.1000fe50
mov ebp, eax
add esp, 0xc
test ebp, ebp
jl 0x10047eb1
cmp ebp, dword [esp + 0x10]
jg 0x10047eb1
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x84]
lea edx, [esp + 0x84]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xeb0]
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push edx
mov byte [esp + 0x24], cl
mov ecx, dword [0x107ab964]
push eax
push edi
push ecx
call fcn.10010a00
add esp, 0x10
test eax, eax
je 0x10047eb1
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x90]
sub esi, ecx
mov ecx, dword [0x107ab964]
add esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x44], ebx
mov word [esp + 0x5e], 0
call fcn.1002b400
add esp, 0x10
test eax, eax
je 0x10047eb1
mov edx, dword [0x107ab964]
push esi
push ebp
push edi
push edx
call section..text
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe9c
ret