Function at 0x415f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e330
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
mov eax, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415ff6
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.00409b10
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41601d
mov eax, esi
call fcn.00413ff0
test al, al
jne 0x41603a
lea ecx, [ebp - 0x2c]
call fcn.004194d0
test al, al
je 0x41603a
lea ecx, [ebp - 0x2c]
call fcn.004198a0
mov edi, dword [ebp - 0x84]
lea esi, [edi + 4]
mov ecx, 0x10
cmp dword [esi + 0x14], ecx
jb 0x416051
mov eax, dword [esi]
jmp 0x416053
mov eax, esi
cmp dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x2c]
jae 0x41605e
lea ecx, [ebp - 0x2c]
push eax
push ecx
call fcn.005329bc
add esp, 8
test eax, eax
jne 0x4160d6
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x88]
push edx
push edi
lea edx, [ebp - 0x2c]
call fcn.00415420
test al, al
jne 0x4160bd
mov ebx, 0x10
cmp dword [esi + 0x14], ebx
jb 0x41608f
mov esi, dword [esi]
mov eax, dword [edi + 0x20]
push esi
push str._s_launcher_file_update_failed.
push 3
call fcn.00401690
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jb 0x4160b3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004310e1
add esp, 4
mov eax, 5
jmp 0x41657e
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x5b7588]
jle 0x4160cd
mov dword [0x5b7588], eax
cmp dword [ebp - 0x18], 0x10
jmp 0x41656e
cmp byte [ebp + 0x24], 0
jne 0x416101
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
je 0x4160f4
cmp eax, dword [0x5b758c]
jle 0x416101
mov dword [0x5b758c], eax
jmp 0x416101
cmp eax, dword [0x5b742c]
jle 0x416101
mov dword [0x5b742c], eax
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x416111
lea eax, [ebp - 0x2c]
call fcn.00413ff0
test al, al
je 0x4161f3
mov eax, ebx
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416135
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x80]
call fcn.00409b10
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
push edx
push eax
mov edx, esi
mov byte [ebp - 4], 1
call fcn.00414cf0
mov esi, 0x10
test al, al
jne 0x4161be
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], esi
jae 0x41617a
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
push eax
mov eax, dword [ecx + 0x20]
push str._s_native_file_update_failed.
push 3
call fcn.00401690
add esp, 0xc
cmp dword [ebp - 0x6c], esi
jb 0x4161a4
mov edx, dword [ebp - 0x80]
push edx
call fcn.004310e1
add esp, 4
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
jmp 0x4160a5
cmp dword [ebp - 0x6c], esi
jb 0x4161cf
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
cmp dword [ebp - 0x18], esi
jb 0x41657c
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x416574
push 0x5b7610
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00409a30
push 9
mov eax, str.Resource_
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040a0b0
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x416235
lea ecx, [ebp - 0x48]
call fcn.00414120
test al, al
jne 0x416295
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x416249
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00414260
add esp, 0xc
cmp dword [ebp - 0x34], esi
jb 0x416274
mov edx, dword [ebp - 0x48]
push edx
call fcn.004310e1
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
cmp dword [ebp - 0x18], esi
jb 0x41657c
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x416574
mov eax, dword [ebp - 0x88]
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4162b7
cmp edi, 0xd
jb 0x4162b7
mov ecx, dword [eax]
cmp ecx, dword [0x591d08]
jne 0x4162b7
cmp byte [eax + 4], 0x1a
je 0x4162bb
xor ebx, ebx
jmp 0x4162be
mov ebx, dword [eax + 5]
push ebx
call fcn.004310d6
mov esi, eax
mov eax, dword [ebp - 0x88]
add esp, 4
mov edx, esi
call fcn.00418d70
test al, al
jne 0x416319
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x20]
push edx
push str._s_file_uncompress_failed.
push 3
call fcn.00401690
push esi
call fcn.004310e1
add esp, 0x10
lea esi, [ebp - 0x48]
call fcn.004097a0
lea esi, [ebp - 0x2c]
call fcn.004097a0
mov eax, 7
jmp 0x41657e
mov eax, dword [ebp + 0x1c]
cmp ebx, eax
je 0x416349
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
push eax
mov eax, dword [edx + 0x20]
push ebx
push ecx
push str._s_file_original_size_failed._org:__d__rece:__d_
push 3
call fcn.00401690
push esi
call fcn.004310e1
add esp, 0x18
jmp 0x4162ff
xor eax, eax
test ebx, ebx
je 0x416366
nop
mov ecx, eax
and ecx, 0xff
mov cl, byte [ecx + 0x591b08]
xor byte [eax + esi], cl
inc eax
cmp eax, ebx
jb 0x416350
lea edx, [ebp - 0x64]
push ebx
push edx
mov ecx, esi
call fcn.0040cd50
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x416396
nop
mov ecx, eax
and ecx, 0xff
mov dl, byte [ecx + 0x591b08]
xor byte [eax + esi], dl
inc eax
cmp eax, ebx
jb 0x416380
mov eax, dword [ebp - 0x90]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4163a0
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x54]
cmp eax, edi
jb 0x4163b4
mov eax, edi
cmp dword [ebp - 0x50], 0x10
mov edx, dword [ebp - 0x64]
jae 0x4163c0
lea edx, [ebp - 0x64]
mov ecx, dword [ebp - 0x90]
call fcn.00401200
test eax, eax
jne 0x4163e7
mov eax, dword [ebp - 0x54]
cmp eax, edi
jb 0x4163e7
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
test eax, eax
je 0x41647d
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x4163f3
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x84]
push edx
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ecx + 0x20]
push str._s_file_checksum_failed._org:__s__rece:__s_
push 3
call fcn.00401690
push esi
call fcn.004310e1
mov esi, 0x10
add esp, 0x18
cmp dword [ebp - 0x50], esi
jb 0x416436
mov edx, dword [ebp - 0x64]
push edx
call fcn.004310e1
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x34], esi
jb 0x416458
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], esi
jb 0x416473
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
mov eax, 6
jmp 0x41657e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x416489
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x8c]
push ebx
mov ebx, dword [ebp - 0x84]
push eax
push ebx
mov ecx, esi
mov edx, edi
call fcn.004158a0
test al, al
jne 0x416520
mov eax, dword [ebx + 0x20]
push edi
push str._s_apply_patch_file_failed.
push 3
call fcn.00401690
push esi
call fcn.004310e1
mov esi, 0x10
add esp, 0x10
cmp dword [ebp - 0x50], esi
jb 0x4164d8
mov edx, dword [ebp - 0x64]
push edx
call fcn.004310e1
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x34], esi
jb 0x4164fa
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], esi
jb 0x4160b3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
mov eax, 5
jmp 0x41657e
push esi
call fcn.004310e1
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x50], esi
jb 0x41653f
mov edx, dword [ebp - 0x64]
push edx
call fcn.004310e1
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x34], esi
jb 0x416561
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
jb 0x41657c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret 0x20