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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1028]
mov eax, 0x1168
call fcn.140108950
sub rsp, rax
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x1010], rax
mov rbx, qword [rbp + 0x10b0]
or eax, 0xffffffff
mov r12, qword [rbp + 0x10c0]
xor esi, esi
mov r14, rcx
mov r13, qword [rbp + 0x10f8]
mov edi, esi
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x60], rdx
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x74], eax
mov dword [rbp - 0x70], esi
mov dword [rbp - 0x78], eax
cmp dword [rcx + 0x64], esi
jne 0x1400dff7f
lea eax, [rsi + 1]
jmp 0x1400e04b0
lea rax, [rcx + 8]
mov rcx, rax
mov qword [rbp - 0x58], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [r14 + 0x58]
mov r15d, 1
mov r9, qword [r14 + 0x50]
mov dword [rbp - 0x7c], edx
lea eax, [rdx + 1]
mov dword [r14 + 0x58], eax
test r9, r9
je 0x1400e00fc
test rbx, rbx
je 0x1400dffde
mov eax, dword [r14 + 0x5c]
mov r8d, r15d
mov edi, dword [rbp + 0x10b8]
mov rcx, rbx
mov edx, edi
mov dword [rbp - 0x80], eax
call qword [sym.imp.msvcrt.dll_fwrite]
cmp eax, r15d
jne 0x1400e049f
add dword [r14 + 0x5c], edi
cmp dword [r14 + 0x68], esi
je 0x1400e00c9
test r12, r12
je 0x1400e00c9
mov rax, qword [r12]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea r9, [rbp - 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, r12
call rbx
test eax, eax
js 0x1400e00c9
mov eax, dword [r14 + 0x5c]
mov edi, esi
mov dword [rbp - 0x74], eax
mov rax, qword [r12]
mov dword [rbp - 0x70], esi
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea r9, [rbp - 0x6c]
mov qword [rsp + 0x20], rsi
mov r8d, 0x1000
lea rdx, [rbp + 0x10]
mov rcx, r12
call rbx
test eax, eax
js 0x1400e00a8
cmp dword [rbp - 0x6c], esi
je 0x1400e00a5
mov edx, dword [rbp - 0x6c]
lea rcx, [rbp + 0x10]
mov r9, qword [r14 + 0x50]
mov r8, r15
call qword [sym.imp.msvcrt.dll_fwrite]
cmp eax, r15d
jne 0x1400e00a5
mov eax, dword [rbp - 0x6c]
add edi, eax
add dword [r14 + 0x5c], eax
mov rax, qword [r12]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea r9, [rbp - 0x6c]
mov qword [rsp + 0x20], rsi
mov r8d, 0x1000
lea rdx, [rbp + 0x10]
mov rcx, r12
call rbx
test eax, eax
jns 0x1400e0051
mov dword [rbp - 0x70], edi
mov rax, qword [r12]
mov ebx, dword [rbp - 0x68]
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [fcn.140009050]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, r12
call rdi
test r13, r13
je 0x1400e0104
mov eax, dword [r14 + 0x5c]
mov r8, r15
mov ebx, dword [rbp + 0x1100]
mov rcx, r13
mov r9, qword [r14 + 0x50]
mov edx, ebx
mov dword [rbp - 0x78], eax
call qword [sym.imp.msvcrt.dll_fwrite]
cmp eax, r15d
jne 0x1400e049f
add dword [r14 + 0x5c], ebx
jmp 0x1400e010a
mov ebx, dword [rbp + 0x1100]
jmp 0x1400e0110
mov ebx, dword [rbp + 0x1100]
mov edx, dword [rbp - 0x7c]
mov edi, dword [rbp - 0x70]
mov rcx, qword [r14 + 0x48]
test rcx, rcx
je 0x1400e0241
mov r8d, edx
lea rdx, str.exchange__u__n
call qword [sym.imp.msvcrt.dll_fwprintf]
test eax, eax
js 0x1400e049f
mov rcx, qword [rbp - 0x48]
lea rax, str.none
cmp qword [r14 + 0x38], rsi
lea rdx, str._tsession_name:__s_n_tserver_name:__s_n_trequest_url:__s_n_texchange_name:__s_n_tconnect_time:__u_n_tproxy_resolution_time:__u_n_txml_write_rc:__08X_n_txml_write_time:__u_n_tsend_xml_size:__u_n_tsend_xml_log_offset:__08X_n_tsend_bin_size:__u_n_tsend_bin_log_offset:__08X_n_tsend_time:__u_n_txml_parse_rc:__08X_n_txml_parse_time:__u_n_tmsft_root_check_time:__u_n_tnet_result_rc:__08X_n_treceive_http_code:__u_n_treceive_size:__u_n_treceive_time:__u_n_treceive_log_offset:__08X_n
mov r9, qword [rbp - 0x60]
mov r8, rax
cmovne r8, qword [r14 + 0x38]
test rcx, rcx
cmovne rax, rcx
mov ecx, dword [rbp - 0x78]
mov dword [rsp + 0xb0], ecx
mov ecx, dword [rbp + 0x1108]
mov dword [rsp + 0xa8], ecx
mov ecx, dword [rbp + 0x10f0]
mov dword [rsp + 0xa0], ebx
mov dword [rsp + 0x98], ecx
mov ecx, dword [rbp + 0x10e8]
mov dword [rsp + 0x90], ecx
mov ecx, dword [rbp + 0x10e0]
mov dword [rsp + 0x88], ecx
mov ecx, dword [rbp + 0x10d8]
mov dword [rsp + 0x80], ecx
mov ecx, dword [rbp + 0x10d0]
mov dword [rsp + 0x78], ecx
mov ecx, dword [rbp + 0x10c8]
mov dword [rsp + 0x70], ecx
mov ecx, dword [rbp - 0x74]
mov dword [rsp + 0x68], ecx
mov ecx, dword [rbp - 0x80]
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], ecx
mov ecx, dword [rbp + 0x10b8]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rbp + 0x10a8]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rbp + 0x10a0]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp + 0x1098]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rbp + 0x1090]
mov dword [rsp + 0x30], ecx
mov rcx, qword [r14 + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_fwprintf]
test eax, eax
js 0x1400e049f
mov rcx, qword [r14 + 0x48]
lea rdx, [0x1401297c8]
call qword [sym.imp.msvcrt.dll_fwprintf]
test eax, eax
js 0x1400e049f
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x1400e04a4
xor r8d, r8d
xor edx, edx
call qword [sym.imp.msvcrt.dll_fseek]
test eax, eax
jne 0x1400e049f
mov r9, qword [r14 + 0x40]
lea edx, [rax + 0x50]
mov r8, r15
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_fread]
mov rcx, rax
test eax, eax
jne 0x1400e02df
mov eax, esi
mov qword [rbp - 0x40], 3
mov edx, esi
mov dword [rbp - 0x80], eax
mov ebx, esi
mov dword [rbp - 0x38], eax
mov dword [rbp - 0x74], eax
mov r13d, esi
mov dword [rbp - 0x24], eax
mov edi, esi
mov dword [rbp - 0x78], eax
mov r11d, esi
mov dword [rbp - 0x14], eax
mov r10d, esi
mov dword [rbp - 0x7c], eax
mov r9d, esi
mov dword [rbp - 0x10], eax
mov r8d, esi
mov eax, 3
mov dword [rbp - 0x34], edx
mov qword [rbp - 0x30], rsi
mov ecx, r15d
mov dword [rbp - 0x28], esi
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], esi
mov dword [rbp - 0xc], esi
mov dword [rbp - 8], ebx
mov qword [rbp - 4], rsi
mov qword [rbp + 4], rsi
mov dword [rbp + 0xc], esi
jmp 0x1400e0317
mov eax, dword [rbp - 0x10]
mov r8d, dword [rbp + 0xc]
mov r9d, dword [rbp + 4]
mov r10d, dword [rbp]
mov r11d, dword [rbp - 4]
mov ebx, dword [rbp - 8]
mov edi, dword [rbp - 0x1c]
mov r13d, dword [rbp - 0x28]
mov edx, dword [rbp - 0x34]
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x78], eax
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x38]
mov dword [rbp - 0x80], eax
mov eax, dword [rbp - 0x40]
cmp ecx, r15d
jne 0x1400e049f
cmp eax, 3
jne 0x1400e0473
mov eax, edx
lea ecx, [rdx + 1]
imul eax, dword [rbp - 0x3c]
xor edx, edx
add eax, dword [rbp + 0x1090]
div ecx
xor edx, edx
mov dword [rbp - 0x3c], eax
mov eax, dword [rbp - 0x80]
imul eax, dword [rbp - 0x34]
mov dword [rbp - 0x34], ecx
add eax, dword [rbp + 0x1098]
div ecx
mov edx, dword [rbp + 0x10b8]
mov dword [rbp - 0x38], eax
test edx, edx
je 0x1400e03c5
mov ecx, dword [rbp - 0x20]
lea eax, [rcx + 1]
mov dword [rbp - 0x80], eax
mov eax, ecx
imul eax, dword [rbp - 0x30]
add eax, edx
xor edx, edx
div dword [rbp - 0x80]
mov dword [rbp - 0x30], eax
test r12, r12
je 0x1400e0397
lea ecx, [rdi + 1]
xor edx, edx
imul edi, dword [rbp - 0x2c]
mov dword [rbp - 0x1c], ecx
add edi, dword [rbp - 0x70]
mov eax, edi
div ecx
mov ecx, dword [rbp - 0x20]
mov dword [rbp - 0x2c], eax
xor edx, edx
imul r13d, ecx
lea edi, [rcx + 1]
mov dword [rbp - 0x20], edi
add r13d, dword [rbp + 0x10c8]
mov eax, r13d
div edi
xor edx, edx
mov dword [rbp - 0x28], eax
mov eax, dword [rbp - 0x74]
imul eax, ecx
add eax, dword [rbp + 0x10a8]
div edi
mov dword [rbp - 0x24], eax
mov edx, dword [rbp + 0x1100]
test edx, edx
je 0x1400e040d
mov edi, dword [rbp - 0xc]
mov eax, edi
imul eax, dword [rbp - 0x18]
lea ecx, [rdi + 1]
mov dword [rbp - 0xc], ecx
add eax, edx
xor edx, edx
div ecx
xor edx, edx
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x78]
imul eax, edi
add eax, dword [rbp + 0x1108]
div ecx
xor edx, edx
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x7c]
imul eax, edi
add eax, dword [rbp + 0x10d8]
div ecx
mov dword [rbp - 0x10], eax
mov eax, dword [rbp + 0x10e0]
cmp eax, 0xffffffff
je 0x1400e042e
lea ecx, [r8 + 1]
xor edx, edx
imul r8d, dword [rbp + 8]
mov dword [rbp + 0xc], ecx
add eax, r8d
div ecx
mov dword [rbp + 8], eax
cmp dword [rbp + 0x10a0], esi
jge 0x1400e043c
add ebx, r15d
mov dword [rbp - 8], ebx
cmp dword [rbp + 0x10d0], esi
jge 0x1400e044b
add r11d, r15d
mov dword [rbp - 4], r11d
cmp dword [rbp + 0x10e8], esi
jge 0x1400e045a
add r10d, r15d
mov dword [rbp], r10d
mov eax, dword [rbp + 0x10f0]
add eax, 0xfffffe70
cmp eax, 0xc7
ja 0x1400e0473
add r9d, r15d
mov dword [rbp + 4], r9d
mov rcx, qword [r14 + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.msvcrt.dll_fseek]
test eax, eax
jne 0x1400e049f
mov r9, qword [r14 + 0x40]
lea edx, [rax + 0x50]
mov r8, r15
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_fwrite]
cmp eax, r15d
je 0x1400e04a4
mov esi, 0x80004005
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x1168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret