Function at 0x412190
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xfd0
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [edx + 0x19a]
lea ebx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
lea ebx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x222]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42e180
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x84]
mov edx, ecx
mov esi, edi
mov edi, 0x42b260
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401630
mov edi, str.cdusr_adminlexcfg.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
lea eax, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403f60
add esp, 8
test eax, eax
jne 0x4122a4
push str.lexcfg.dat_file_does_not_exist
call fcn.00405a00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfd0
ret
lea ecx, [esp + 0x84]
push ecx
call fcn.004040a0
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0x10]
mov ebx, eax
push 0
push edx
lea eax, [esp + 0x254]
push 0xd93
push eax
push ebx
call ebp
mov eax, dword [esp + 0x24c]
mov esi, 1
cmp eax, esi
mov edi, eax
jl 0x41231a
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x254]
push 0xd93
push edx
push ebx
call ebp
lea eax, [esp + 0x250]
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.0041c250
add esp, 8
test eax, eax
je 0x41234f
inc esi
cmp esi, edi
jle 0x4122e5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x4c]
push eax
push str._852__Server___s__is_not_registered_in_lexcfg.dat
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfd0
ret
lea edi, [esp + 0x2a4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1e8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0xe8]
push ecx
call fcn.00401630
mov edi, str.cdusr_this_server_name.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xec]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004040a0
add esp, 8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
mov esi, eax
push 0
push ecx
push 0x19
push edx
push esi
call ebp
push esi
call ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x68]
push eax
push ecx
push str.upoint___mach_s__pfileserver__s
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
lea edx, [esp + 0x28]
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.0041c250
add esp, 0x1c
test eax, eax
jne 0x4124d6
lea ecx, [esp + 0xe8]
push ecx
call fcn.00401630
mov edi, str.cdusrqueue_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xec]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xec]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1f0]
push ecx
push str.pfile_is_on_this_server___destprt_s__pfile_s
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
lea edx, [esp + 0x100]
lea eax, [esp + 0x200]
push edx
push eax
call fcn.004137d0
add esp, 0x20
jmp 0x41261a
mov ecx, 5
mov esi, str.ocsprogcdusrqueue_
lea edi, [esp + 0xe8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xe8]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x84]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401630
mov edi, 0x41f1f0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x88]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xf0]
xor eax, eax
mov ax, word [0x42df64]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push str.get_pfile___TPort_i_pfileserver_s_temp_s_file_s
push 0x42bf20
call fcn.0041408f
push 0x42bf20
call fcn.00405a00
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x108]
push ecx
mov cx, word [0x42df64]
lea eax, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00405410
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x30
push 0x3e8
call esi
lea edx, [esp + 0x84]
lea eax, [esp + 0x1e8]
push edx
push eax
call fcn.004137d0
add esp, 8
push 0xa
call esi
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 0x42b260
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, 0x42e180
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfd0
ret