Function at 0x41c530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fe48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x625c5c]
mov eax, dword [eax + 0xab0]
push ecx
push 0xfe
xor esi, esi
push esi
push eax
call fcn.0041b050
mov edx, dword [ebx]
mov byte [ebp - 0xd], al
mov eax, dword [edx + 0x14]
add esp, 0x10
mov ecx, ebx
call eax
mov edi, dword [eax + 4]
sub edi, dword [eax]
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0054e1ec
add esp, 4
mov byte [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.0040b160
mov dl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], esi
mov byte [eax], dl
test edi, edi
jle 0x41c5dd
lea ecx, [ecx]
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov ecx, dword [eax]
mov dl, byte [ecx + esi]
xor dl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x28]
mov byte [eax + esi + 1], dl
inc esi
cmp esi, edi
jl 0x41c5c0
mov ecx, dword [0x610024]
mov edi, vtable.CFileStream.0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x5a6dd8
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
call esi
push 0x5a6dd8
push eax
lea ecx, [ebp - 0x2c]
call fcn.004057d0
mov edx, dword [0x610024]
mov eax, 0x5a8044
shr eax, 0x10
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], edx
test eax, eax
jne 0x41c725
mov ecx, 0x5a8044
movzx eax, cx
push eax
lea ecx, [ebp - 0x14]
call fcn.00407130
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0041e480
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 0x80004005
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
sete bl
mov byte [ebp - 4], 3
cmp ecx, dword [0x610020]
je 0x41c68f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41c68f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.00551d56
add esp, 4
test bl, bl
je 0x41c78c
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0041d9d0
mov eax, dword [ebp - 0x2c]
lea edx, [eax - 0xc]
cmp edx, dword [0x610020]
je 0x41c6cd
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41c6cd
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00551d56
add esp, 4
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x34], vtable.IFile.0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41c70c
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41c70c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c70c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5a8044
call esi
mov esi, eax
test esi, esi
je case.0x41c767.0
push esi
lea ecx, [ebp - 0x14]
call fcn.00402ba0
test eax, eax
je case.0x41c767.0
mov edx, dword [ebp - 0x14]
push esi
push 0x5a8044
inc esi
push esi
push edx
call fcn.00551af6
add esp, 0x10
cmp eax, 0x50
ja case.0x41c767.1
movzx eax, byte [eax + 0x41c840]
jmp dword [eax*4 + 0x41c830]
push 0x8007000e
call fcn.00402500
push 0x80070057
call fcn.00402500
push 0x80004005
call fcn.00402500
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.0041e670
mov ebx, eax
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.0041d9d0
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x610020]
je 0x41c7d8
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41c7d8
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00551d56
add esp, 4
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x34], vtable.IFile.0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41c817
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41c817
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c817
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4