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

Disassembly:
push rdi
sub rsp, 0x4b0
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movzx eax, word [0x01001c50]
mov word [rsp + 0xa0], ax
lea rax, [rsp + 0xa2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x50], 0xffffffffffffffff
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4a0], 0
lea rcx, [0x0100b4e0]
call fcn.01053b10
lea r8, [0x01068274]
mov edx, 0x200
lea rcx, [rsp + 0xa0]
call fcn.0105ab90
lea r8, [0x0100b448]
mov edx, 0x200
lea rcx, [rsp + 0xa0]
call fcn.01015bf0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x104def0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xa0]
mov r8d, 0x1a3
xor edx, edx
mov ecx, 1
call fcn.01034b80
xor eax, eax
jmp 0x104e2d1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x104df49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xa0]
mov r8d, 0x1a3
xor edx, edx
mov ecx, 1
call fcn.01034b80
jmp 0x104e27a
cmp dword [rsp + 0x44], 0x6acfc0
jge 0x104df74
mov r9d, dword [rsp + 0x44]
mov r8d, 0xea
xor edx, edx
mov ecx, 1
call fcn.01034b80
jmp 0x104e27a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x104dfcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xa0]
mov r8d, 0x1a3
xor edx, edx
mov ecx, 1
call fcn.01034b80
jmp 0x104e27a
cmp dword [rsp + 0x40], 0
je 0x104e27a
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCR80.dll__wcslwr]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, WSACleanup
xor edx, edx
mov ecx, 2
call fcn.01034b80
lea rcx, [0x01066a38]
call qword [0x01069178]
test eax, eax
jne 0x104e046
cmp dword [0x010689c0], 0
je 0x104e039
cmp dword [0x01068484], 0
je 0x104e039
lea rdx, [0x0100b4b0]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x104e06c
cmp dword [0x01068484], 0
je 0x104e06c
lea rdx, [0x0100b4b0]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0x48], 0
jmp 0x104e081
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
jge 0x104e247
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, gethostbyname
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x104e11b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xa0]
mov r8d, 0x1a3
xor edx, edx
mov ecx, 1
call fcn.01034b80
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x104e111
cmp dword [0x01068484], 0
je 0x104e111
lea rdx, [0x0100b4b0]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x104e27a
mov eax, dword [rsp + 0x90]
cmp rax, 0x30
jne 0x104e242
mov r8d, 0x399
lea rdx, [0x0100b4b0]
mov ecx, dword [rsp + 0x80]
call fcn.01014ff0
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x104e242
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x104e1da
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x90], eax
jne 0x104e1da
lea rax, [fcn.01047a10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x01066c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemBSInsert]
mov eax, dword [rsp + 0x4a0]
add eax, 1
mov dword [rsp + 0x4a0], eax
jmp 0x104e242
mov rcx, qword [rsp + 0x88]
call fcn.01015770
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xa0]
mov r8d, 0x1a3
xor edx, edx
mov ecx, 1
call fcn.01034b80
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x104e23e
cmp dword [0x01068484], 0
je 0x104e23e
lea rdx, [0x0100b4b0]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x104e27a
jmp 0x104e076
lea rcx, [0x01066a38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x104e27a
cmp dword [0x01068484], 0
je 0x104e27a
lea rdx, [0x0100b4b0]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x104e29b
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x4a0]
cmp dword [rsp + 0x40], eax
je 0x104e2ca
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x4a0]
mov r8d, 0x133
xor edx, edx
mov ecx, 2
call fcn.01034b80
mov eax, dword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x4b0
pop rdi
ret