Function at 0x411360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x435e80]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x228]
push 0x1ff
lea eax, [esp + 0x21]
push 0
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0
mov byte [esp + 0x28], 0
call fcn.00412590
push 0x42ec54
push esi
call fcn.0041349e
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4113f0
call fcn.00414ab8
mov ecx, dword [eax]
push str.Failed_to_open_the_KaseyaD.ini_file.
push ecx
push 3
push 1
push ebp
call fcn.004120f0
add esp, 0x14
pop esi
pop ebp
lea eax, [ebx - 5]
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00412a21
add esp, 0x214
ret
push edi
push 2
push 0
push ebx
call fcn.00413355
push ebx
call fcn.00413260
push 0
push 0
push ebx
mov esi, eax
call fcn.00413355
lea edi, [esi + 1]
push edi
call fcn.00412f17
add esp, 0x20
test eax, eax
mov dword [esp + 0x18], eax
jne 0x411442
push str.Failed_to_allocate_memory_required_to_update_the_KaeyaD.ini_file.
push 0xfffffffffffffff3
push 3
push 3
push ebp
call fcn.004120f0
add esp, 0x14
mov dword [esp + 0x10], 0xfffffff3
jmp 0x4117bf
push edi
push 0
push eax
call fcn.00412590
mov edi, dword [esp + 0x24]
push ebx
push esi
push 1
push edi
call fcn.00412ead
push ebx
call fcn.0041304c
push str.User_Name
push edi
call fcn.0040ed10
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x411494
push str.Invalid_format_of_the_configuration_file.
push 0xfffffffffffffff9
push 3
push 3
push ebp
call fcn.004120f0
add esp, 0x14
mov dword [esp + 0x10], 0xfffffff9
jmp 0x4117d0
add esi, 0xa
cmp byte [esi], 0x20
jne 0x4114a8
lea esp, [esp]
add esi, 1
cmp byte [esi], 0x20
je 0x4114a0
push 0xa
push esi
call fcn.004134d0
add esp, 8
test eax, eax
jne 0x4114d0
push str.Invalid_format_of_the_configuration_file.
push 0xfffffffffffffff9
push 3
push 3
push ebp
call fcn.004120f0
add esp, 0x14
jmp 0x4117d0
mov edx, dword [esp + 0x14]
add eax, 1
push 0x42ebb8
push edx
mov dword [esp + 0x24], eax
call fcn.0041349e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x411516
mov dword [esp + 0x10], 0xfffffffb
call fcn.00414ab8
mov eax, dword [eax]
push str.Failed_to_open_the_KaseyaD.ini_for_updating.
push eax
push 3
push 1
push ebp
call fcn.004120f0
add esp, 0x14
jmp 0x4117bf
push ebx
sub esi, edi
push esi
push 1
push edi
call fcn.00412b8f
add esp, 0x10
cmp eax, esi
je 0x411550
mov dword [esp + 0x10], 0xfffffffd
call fcn.00414ab8
push str.File_error_occurred_updating_the_KaseyaD.ini_file.
mov ecx, dword [eax]
push ecx
push 2
push 1
push ebp
call fcn.004120f0
add esp, 0x14
jmp 0x4117bf
lea eax, [ebp + 0x26c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411560
sub eax, edx
mov edi, eax
mov dword [esp + 0x14], edi
mov esi, 0
je 0x4115b9
jmp 0x411580
movsx edx, byte [esi + ebp + 0x26c]
push edx
call fcn.00416c3f
add esp, 4
test eax, eax
je 0x41159a
add esi, 1
jmp 0x4115b2
movsx eax, byte [esi + ebp + 0x26c]
push eax
call fcn.00416be2
add esp, 4
mov byte [esi + ebp + 0x26c], al
add esi, 1
cmp esi, edi
jb 0x411580
lea edi, [ebp + 0x26c]
push edi
call fcn.0040eeb0
mov esi, eax
add esp, 4
test esi, esi
je 0x4115f7
push edi
lea ecx, [esp + 0x24]
push str.Replacing_invalid_characters_in_the_machine_ID
push ecx
call fcn.00413e72
lea edx, [esp + 0x2c]
push edx
push esi
push 1
push 3
push ebp
call fcn.004120f0
push edi
call fcn.0040ef30
add esp, 0x24
mov esi, dword [esp + 0x14]
push ebx
push esi
push 1
push edi
call fcn.00412b8f
add esp, 0x10
cmp eax, esi
je 0x41162b
call fcn.00414ab8
push str.File_error_occurred_updating_machine_ID_in_the_KaseyaD.ini_file.
mov eax, dword [eax]
push eax
push 2
push 1
push ebp
call fcn.004120f0
add esp, 0x14
jmp 0x4117bf
push ebx
push 1
push 1
push 0x42eadc
call fcn.00412b8f
add esp, 0x10
cmp eax, 1
je 0x411669
mov dword [esp + 0x10], 0xfffffffd
call fcn.00414ab8
mov ecx, dword [eax]
push str.File_error_occurred_updating_the_KaseyaD.ini_file.
push ecx
push 2
push 1
push ebp
call fcn.004120f0
add esp, 0x14
jmp 0x4117bf
lea esi, [ebp + 0x2c4]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411674
sub eax, edx
mov dword [esp + 0x14], eax
mov edi, 0
je 0x4116bf
lea ebx, [ebx]
movsx edx, byte [esi + edi]
push edx
call fcn.00416c3f
add esp, 4
test eax, eax
je 0x4116a6
add edi, 1
jmp 0x4116b6
movsx eax, byte [esi + edi]
push eax
call fcn.00416be2
add esp, 4
mov byte [esi + edi], al
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x411690
push esi
call fcn.0040eeb0
mov edi, eax
add esp, 4
test edi, edi
je 0x4116f7
push esi
lea ecx, [esp + 0x24]
push str.Replacing_invalid_characters_in_the_group_ID
push ecx
call fcn.00413e72
lea edx, [esp + 0x2c]
push edx
push edi
push 1
push 3
push ebp
call fcn.004120f0
push esi
call fcn.0040ef30
add esp, 0x24
mov edi, dword [esp + 0x14]
push ebx
push edi
push 1
push esi
call fcn.00412b8f
add esp, 0x10
cmp eax, edi
je 0x411723
mov dword [esp + 0x10], 0xfffffffd
call fcn.00414ab8
push str.File_error_occurred_updating_the_group_ID_in_the_KaseyaD.ini_file.
jmp 0x411616
push esi
lea eax, [ebp + 0x26c]
push eax
lea ecx, [esp + 0x28]
push str.Agent_name:__s._s
push ecx
call fcn.00413e72
lea edx, [esp + 0x30]
push edx
push 0
push 1
push 3
push ebp
call fcn.004120f0
push ebx
push 1
push 1
push 0x42b998
call fcn.00412b8f
add esp, 0x34
cmp eax, 1
je 0x411779
mov dword [esp + 0x10], 0xfffffffd
call fcn.00414ab8
push str.File_error_occurred_completing_the_User_Name_entry_for_the_KaseyaD.ini_file.
jmp 0x411616
mov edx, dword [esp + 0x1c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411782
sub eax, esi
push ebx
mov esi, eax
push esi
push 1
push edx
call fcn.00412b8f
add esp, 0x10
cmp eax, esi
je 0x4117b7
mov dword [esp + 0x10], 0xfffffffd
call fcn.00414ab8
push str.File_error_occurred_completing_the_update_of_the_KaseyaD.ini_file.
jmp 0x41153b
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4117cc
push ebx
call fcn.0041304c
add esp, 4
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4117dd
push edi
call fcn.00412262
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412a21
add esp, 0x214
ret