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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x200
push esi
push eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x208], ebx
call fcn.004a7f20
push 0x4e3118
push ebx
call fcn.004afdb4
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x427ff0
call fcn.004abdc7
push str.Failed_to_open_the_KaseyaD.ini_file.
push dword [eax]
push 3
push 1
push edi
call fcn.00429952
add esp, 0x14
push 0xfffffffffffffffb
pop esi
jmp 0x4283d4
push 2
push esi
push ebx
call fcn.004aefc8
push ebx
call fcn.004b61bd
push esi
push esi
push ebx
mov dword [ebp - 0x210], eax
call fcn.004aefc8
mov eax, dword [ebp - 0x210]
inc eax
push eax
mov dword [ebp - 0x218], eax
call fcn.004ac04c
add esp, 0x20
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x42803f
push str.Failed_to_allocate_memory_required_to_update_the_KaeyaD.ini_file.
push 0xfffffffffffffff3
pop esi
push esi
push 3
push 3
jmp 0x4283b3
push dword [ebp - 0x218]
push esi
push eax
call fcn.004a7f20
push ebx
push dword [ebp - 0x210]
push 1
push dword [ebp - 0x214]
call fcn.004aeb87
push ebx
call fcn.004ae483
push str.User_Name
push dword [ebp - 0x214]
call fcn.00426eb1
mov ebx, eax
add esp, 0x28
test ebx, ebx
jne 0x42809a
push str.Invalid_format_of_the_configuration_file.
push 0xfffffffffffffff9
pop esi
push esi
push 3
push 3
push edi
call fcn.00429952
add esp, 0x14
jmp 0x4283c3
add ebx, 0xa
jmp 0x4280a0
inc ebx
cmp byte [ebx], 0x20
je 0x42809f
push 0xa
push ebx
call fcn.004a8f20
pop ecx
pop ecx
test eax, eax
jne 0x4280bc
push str.Invalid_format_of_the_configuration_file.
push 0xfffffffffffffff9
jmp 0x428088
push 0x4e31b8
push dword [ebp - 0x208]
inc eax
mov dword [ebp - 0x218], eax
call fcn.004afdb4
mov dword [ebp - 0x210], eax
pop ecx
pop ecx
test eax, eax
jne 0x4280f4
push 0xfffffffffffffffb
pop esi
call fcn.004abdc7
push str.Failed_to_open_the_KaseyaD.ini_for_updating.
push dword [eax]
push 3
push 1
jmp 0x42808c
mov ecx, dword [ebp - 0x214]
sub ebx, ecx
push eax
push ebx
push 1
push ecx
call fcn.004af21b
add esp, 0x10
cmp eax, ebx
je 0x428131
push 0xfffffffffffffffd
pop esi
call fcn.004abdc7
push str.File_error_occurred_updating_the_KaseyaD.ini_file.
push dword [eax]
push 2
push 1
push edi
call fcn.00429952
mov ebx, dword [ebp - 0x210]
jmp 0x4283b9
lea eax, [edi + 0x26c]
mov ecx, eax
mov dword [ebp - 0x20c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428142
sub ecx, edx
mov ebx, esi
mov dword [ebp - 0x208], ecx
je 0x42818a
mov edi, dword [ebp - 0x20c]
mov esi, ecx
movsx eax, byte [edi + ebx]
push eax
call fcn.004b0b4d
pop ecx
test eax, eax
je 0x42816f
inc ebx
jmp 0x42817d
movsx eax, byte [edi + ebx]
push eax
call fcn.004b0ce1
pop ecx
mov byte [edi + ebx], al
inc ebx
cmp ebx, esi
jb 0x42815d
mov edi, dword [ebp - 0x21c]
xor esi, esi
lea ebx, [edi + 0x26c]
push ebx
call fcn.00426c46
mov dword [ebp - 0x20c], eax
pop ecx
test eax, eax
je 0x4281d3
push ebx
lea eax, [ebp - 0x204]
push str.Replacing_invalid_characters_in_the_machine_ID__s
push eax
call fcn.00418a96
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
push 1
push 3
push edi
call fcn.00429952
push ebx
call fcn.00426e4c
add esp, 0x24
mov ebx, dword [ebp - 0x210]
lea eax, [edi + 0x26c]
push ebx
push dword [ebp - 0x208]
push 1
push eax
call fcn.004af21b
add esp, 0x10
cmp eax, dword [ebp - 0x208]
je 0x428208
call fcn.004abdc7
push str.File_error_occurred_updating_machine_ID_in_the_KaseyaD.ini_file.
jmp 0x4283ad
push ebx
push 1
push 1
push 0x4dd3a0
call fcn.004af21b
add esp, 0x10
cmp eax, 1
je 0x428231
push 0xfffffffffffffffd
pop esi
call fcn.004abdc7
push str.File_error_occurred_updating_the_KaseyaD.ini_file.
jmp 0x4283ad
lea eax, [edi + 0x2c4]
mov ecx, eax
mov dword [ebp - 0x20c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428242
sub ecx, edx
mov dword [ebp - 0x208], ecx
je 0x428290
mov edi, dword [ebp - 0x20c]
mov ebx, esi
movsx eax, byte [edi + ebx]
push eax
call fcn.004b0b4d
pop ecx
test eax, eax
je 0x42826d
inc ebx
jmp 0x42827b
movsx eax, byte [edi + ebx]
push eax
call fcn.004b0ce1
pop ecx
mov byte [edi + ebx], al
inc ebx
cmp ebx, dword [ebp - 0x208]
jb 0x42825b
mov edi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x210]
lea eax, [edi + 0x2c4]
push eax
call fcn.00426c46
mov dword [ebp - 0x20c], eax
pop ecx
test eax, eax
je 0x4282e5
lea eax, [edi + 0x2c4]
push eax
lea eax, [ebp - 0x204]
push str.Replacing_invalid_characters_in_the_group_ID__s
push eax
call fcn.00418a96
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
push 1
push 3
push edi
call fcn.00429952
lea eax, [edi + 0x2c4]
push eax
call fcn.00426e4c
add esp, 0x24
push ebx
push dword [ebp - 0x208]
lea eax, [edi + 0x2c4]
push 1
push eax
call fcn.004af21b
add esp, 0x10
cmp eax, dword [ebp - 0x208]
je 0x428317
push 0xfffffffffffffffd
pop esi
call fcn.004abdc7
push str.File_error_occurred_updating_the_group_ID_in_the_KaseyaD.ini_file.
jmp 0x4283ad
lea eax, [edi + 0x2c4]
push eax
lea eax, [edi + 0x26c]
push eax
lea eax, [ebp - 0x204]
push str.Agent_name:__s._s
push eax
call fcn.00418a96
lea eax, [ebp - 0x204]
push eax
push esi
push 1
push 3
push edi
call fcn.00429952
push ebx
push 1
push 1
push 0x4e0764
call fcn.004af21b
add esp, 0x34
cmp eax, 1
je 0x42836e
push 0xfffffffffffffffd
pop esi
call fcn.004abdc7
push str.File_error_occurred_completing_the_User_Name_entry_for_the_KaseyaD.ini_file.
jmp 0x4283ad
mov ecx, dword [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428377
sub ecx, edx
push ebx
push ecx
push 1
push dword [ebp - 0x218]
mov dword [ebp - 0x20c], ecx
call fcn.004af21b
add esp, 0x10
cmp eax, dword [ebp - 0x20c]
je 0x4283bc
push 0xfffffffffffffffd
pop esi
call fcn.004abdc7
push str.File_error_occurred_completing_the_update_of_the_KaseyaD.ini_file.
push dword [eax]
push 2
push 1
push edi
call fcn.00429952
add esp, 0x14
push ebx
call fcn.004ae483
pop ecx
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4283d4
push eax
call fcn.004ac047
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret