Function at 0x1018b860
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x101b2204
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x10415990]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10415990]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xe0]
mov esi, dword [esp + 0xd8]
xor ebx, ebx
push ebx
push 0x104166c0
push 0x10416608
push ebx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ecx
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
cmp eax, ebx
jne 0x1018b99a
push 0x1016baa0
push 2
push 0x22a
push str.f:userypzhu2ivw_trunk_1421_sourcew_res_res_loader_resLoader_ivw_statenet.h
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.101697a0
mov eax, dword [esp + 0x1c]
push str.__resource_link_should_not_be_NULL
add eax, 0xbc0
push str.ResLoader_Filler_KeyWord::save
push eax
mov dword [esp + 0xd8], ebx
call fcn.10167060
add esp, 8
push eax
call fcn.10167060
or esi, 0xffffffff
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0xcc], esi
call fcn.1016cac0
push 0x1016baa0
push 2
push 0x22a
push str.f:userypzhu2ivw_trunk_1421_sourcew_res_res_loader_resLoader_ivw_statenet.h
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.101697a0
mov eax, dword [esp + 0x1c]
push 0xea65
add eax, 0xbc0
push str.Error:_ret
push eax
mov dword [esp + 0xd8], 1
call fcn.10167060
add esp, 8
mov ecx, eax
call fcn.10167af0
lea ecx, [esp + 0x18]
mov dword [esp + 0xcc], esi
call fcn.1016cac0
mov eax, 0xea65
jmp 0x1018bf90
mov ebp, dword [eax + 0x448]
mov edi, 0xf
xor ecx, ecx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ecx
mov byte [esp + 0xa4], bl
mov dword [esp + 0xcc], 2
mov dword [esp + 0x20], ebx
cmp dword [ebp + 8], ebx
jle 0x1018bdc4
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x1018b9e4
mov esi, dword [esp + 0x14]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov eax, dword [ebp + 4]
xor edx, edx
xor edi, edi
mov byte [esp + 0xcc], 3
cmp dx, word [eax + esi + 0x200]
jge 0x1018bab1
movsx eax, word [eax + esi]
push ebx
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.101878b0
push 0x101b5c64
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0xe4], 4
call fcn.10187a00
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 5
call fcn.101661a0
cmp dword [esp + 0x48], 0x10
jb 0x1018ba65
mov eax, dword [esp + 0x34]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0xcc], 3
jb 0x1018ba94
mov ecx, dword [esp + 0x6c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x14]
movsx ecx, word [eax + edx + 0x200]
inc edi
add esi, 2
cmp edi, ecx
jl 0x1018ba11
mov esi, edx
mov edx, dword [ebp + 4]
movsx eax, word [edx + esi + 0x204]
push ebx
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.101878b0
push eax
lea edx, [esp + 0x44]
push 0x10377e20
push edx
mov byte [esp + 0xe4], 6
call fcn.10187a50
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 7
call fcn.101661a0
mov esi, 0x10
cmp dword [esp + 0x48], esi
jb 0x1018bb10
mov eax, dword [esp + 0x34]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 0xf
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0xcc], 3
cmp dword [esp + 0x80], esi
jb 0x1018bb3f
mov ecx, dword [esp + 0x6c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 4]
movsx ecx, word [edx + eax + 0x202]
lea ecx, [ecx + ecx*2]
shl ecx, 6
add ecx, dword [ebp + 0xc]
mov dword [esp + 0x9c], edi
mov eax, ecx
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1018bb71
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x90]
call fcn.10048340
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x70]
push 0x10377e20
push edx
mov byte [esp + 0xd8], 8
call fcn.10187aa0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 9
call fcn.101661a0
mov esi, 0x10
mov byte [esp + 0xcc], 8
cmp dword [esp + 0x80], esi
jb 0x1018bbe2
mov eax, dword [esp + 0x6c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x64], esi
jb 0x1018bbf2
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], ecx
jmp 0x1018bbfa
lea edx, [esp + 0x50]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x60]
xor eax, eax
xor ecx, ecx
cmp edx, ebx
jbe 0x1018bc2e
mov esi, dword [esp + 0x30]
movzx esi, byte [esi + ecx]
movzx edi, ax
shr edi, 8
shl eax, 8
xor esi, edi
xor ax, word [esi*2 + 0x102916d8]
inc ecx
movzx eax, ax
cmp ecx, edx
jb 0x1018bc06
mov esi, 0x10
movzx eax, ax
push ebx
push eax
lea eax, [esp + 0x74]
push eax
call fcn.101878b0
push eax
lea ecx, [esp + 0x44]
push 0x10377e20
push ecx
mov byte [esp + 0xe4], 0xa
call fcn.10187a50
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 0xb
call fcn.101661a0
cmp dword [esp + 0x48], esi
jb 0x1018bc80
mov edx, dword [esp + 0x34]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 0xf
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0xcc], 8
cmp dword [esp + 0x80], esi
jb 0x1018bcaf
mov eax, dword [esp + 0x6c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.101878b0
push eax
lea eax, [esp + 0x44]
push 0x10377e20
push eax
mov byte [esp + 0xe4], 0xc
call fcn.10187a50
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 0xd
call fcn.101661a0
cmp dword [esp + 0x48], esi
jb 0x1018bd01
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0xcc], 8
cmp dword [esp + 0x80], esi
jb 0x1018bd2b
mov edx, dword [esp + 0x6c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push 0x10377b1c
lea ecx, [esp + 0x58]
call fcn.10166290
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xb0]
call fcn.101661a0
cmp dword [esp + 0x9c], esi
jb 0x1018bd68
mov ecx, dword [esp + 0x88]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0xcc], 2
cmp dword [esp + 0x64], esi
jb 0x1018bd98
mov edx, dword [esp + 0x50]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], 0x206
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [ebp + 8]
jl 0x1018b9e0
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xb8]
cmp ecx, dword [esp + 0xdc]
jb 0x1018bf43
push 0x1016baa0
push 2
push 0x23d
push str.f:userypzhu2ivw_trunk_1421_sourcew_res_res_loader_resLoader_ivw_statenet.h
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.101697a0
mov eax, dword [esp + 0x2c]
push str.__Input_buffer_length_is_not_enough.
add eax, 0xbc0
push str.ResLoader_Filler_KeyWord::save
push eax
mov byte [esp + 0xd8], 0xe
call fcn.10167060
add esp, 8
push eax
call fcn.10167060
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0xcc], 2
call fcn.1016b8b0
mov esi, dword [esp + 0x28]
mov ebp, esi
mov edi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
cmp esi, ebx
je 0x1018be7d
add esi, 0xc08
mov dword [esp + 0x18], esi
lea ecx, [esi - 0x44]
mov byte [esp + 0xcc], 0xf
call fcn.1004eb00
mov eax, dword [esi - 0x48]
mov ecx, dword [eax + 4]
mov dword [ecx + esi - 0x48], edi
push esi
mov byte [esp + 0xd0], 2
mov dword [esi], vtable.std::ios_base.0
call fcn.1015ff0a
push ebp
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 8
push 0x1016baa0
push 2
push 0x23d
push str.f:userypzhu2ivw_trunk_1421_sourcew_res_res_loader_resLoader_ivw_statenet.h
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.101697a0
mov eax, dword [esp + 0x24]
push 0xea6c
add eax, 0xbc0
push str.Error:_ret
push eax
mov byte [esp + 0xd8], 0x10
call fcn.10167060
add esp, 8
mov ecx, eax
call fcn.10167af0
lea ecx, [esp + 0x20]
mov byte [esp + 0xcc], 2
call fcn.1016b8b0
mov eax, dword [esp + 0x20]
mov ebp, eax
cmp eax, ebx
je 0x1018bf22
lea esi, [eax + 0xc08]
mov dword [esp + 0x18], esi
lea ecx, [esi - 0x44]
mov byte [esp + 0xcc], 0x11
call fcn.1004eb00
mov edx, dword [esi - 0x48]
mov eax, dword [edx + 4]
mov dword [eax + esi - 0x48], edi
push esi
mov byte [esp + 0xd0], 2
mov dword [esi], vtable.std::ios_base.0
call fcn.1015ff0a
push ebp
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 8
cmp dword [esp + 0xb8], 0x10
jb 0x1018bf3c
mov ecx, dword [esp + 0xa4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0xea6c
jmp 0x1018bf90
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0xa4]
mov dword [edx], ecx
mov edx, ebp
cmp edi, 0x10
jae 0x1018bf5e
lea edx, [esp + 0xa4]
cmp ecx, ebx
jbe 0x1018bf80
mov eax, esi
sub edx, esi
mov esi, ecx
jmp 0x1018bf70
movzx ecx, byte [edx + eax]
mov cl, byte [ecx + 0x102915d8]
mov byte [eax], cl
inc eax
dec esi
jne 0x1018bf70
cmp edi, 0x10
jb 0x1018bf8e
push ebp
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.1015eea7
add esp, 0xbc
ret 0x10