Function at 0x528690
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x2f8
mov rax, qword [0x005ca070]
mov qword [rsp + 0x2a0], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x40], r15
xor r15d, r15d
test rdx, rdx
mov qword [rsp + 0x58], r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
mov r12, r15
mov qword [rsp + 0x48], r15
mov qword [rcx], r15
mov qword [rsp + 0x50], rcx
jne 0x5286ed
xor eax, eax
jmp 0x5292b2
mov ecx, 0x29
mov qword [rsp + 0x2e8], rbp
mov qword [rsp + 0x2e0], rsi
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov rsi, rax
mov qword [rsp + 0x40], rax
je 0x5287d7
lea rbp, [0x00400000]
mov qword [rsp + 0x2d8], rdi
mov rcx, 0xffffffffffffffff
mov rax, qword [rbp + 0x18bc68]
mov rdi, rsi
mov qword [rsi], rax
mov rax, qword [rbp + 0x18bc70]
mov qword [rsi + 8], rax
mov rax, qword [rbp + 0x18bc78]
mov qword [rsi + 0x10], rax
mov eax, dword [rbp + 0x18bc80]
mov dword [rsi + 0x18], eax
movzx eax, byte [rbp + 0x18bc84]
mov byte [rsi + 0x1c], al
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0x28
mov rdi, rcx
jae 0x528797
call fcn.0052c3e0
inc rdi
mov edx, eax
and edx, 0xf
cmp rdi, 0x28
movzx eax, byte [rdx + rbp + 0x18bc00]
mov byte [rdi + rsi - 1], al
jb 0x528778
lea r9, str.Content_Type:_multipart_form_data
test rbx, rbx
lea r8, str._s__boundary_s_r_n
cmovne r9, rbx
lea rcx, [rsp + 0x30]
xor edx, edx
mov byte [rsi + 0x28], r12b
mov qword [rsp + 0x20], rsi
call fcn.00528030
test eax, eax
mov edi, eax
je 0x5287e1
mov rcx, rsi
call qword [fcn.00443590]
mov eax, edi
jmp 0x52929a
mov eax, 0x1b
jmp 0x5292a2
mov qword [rsp + 0x2c8], r13
mov r13, qword [rsp + 0x30]
nop
cmp qword [rsp + 0x38], 0
je 0x528818
lea r8, [0x005642a0]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x529014
lea r8, str.___s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, rsi
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x529014
lea r8, str.Content_Disposition:_form_data__name_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x529014
mov rsi, qword [r14 + 8]
movsxd rdi, dword [r14 + 0x10]
lea ecx, [rax + 0x20]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov rbx, rax
je 0x529074
test rdi, rdi
mov qword [rax], r15
jne 0x528895
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rcx, [rdi + 1]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x529080
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.004435a0
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rdi
mov byte [rdi + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rbx + 8], 0
test rax, rax
je 0x5288e1
mov qword [rax], rbx
mov qword [rsp + 0x30], rbx
jmp 0x5288e6
mov qword [rsp + 0x30], rbx
add qword [rsp + 0x38], rdi
lea r8, [0x0058bd48]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x5291b6
cmp qword [r14 + 0x48], 0
je 0x5289dd
lea ecx, [rax + 0x29]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov r12, rax
mov qword [rsp + 0x48], rax
jne 0x528936
mov qword [rsp + 0x48], rax
jmp 0x5289ba
lea rbx, [0x00400000]
mov rcx, 0xffffffffffffffff
mov rdi, r12
mov rax, qword [rbx + 0x18bc68]
mov qword [r12], rax
mov rax, qword [rbx + 0x18bc70]
mov qword [r12 + 8], rax
mov rax, qword [rbx + 0x18bc78]
mov qword [r12 + 0x10], rax
mov eax, dword [rbx + 0x18bc80]
mov dword [r12 + 0x18], eax
movzx eax, byte [rbx + 0x18bc84]
mov byte [r12 + 0x1c], al
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0x28
mov rdi, rcx
jae 0x5289b4
call fcn.0052c3e0
inc rdi
mov edx, eax
and edx, 0xf
cmp rdi, 0x28
movzx eax, byte [rdx + rbx + 0x18bc00]
mov byte [rdi + r12 - 1], al
jb 0x528994
mov byte [r12 + 0x28], 0
lea r8, str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r12
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x5291c0
mov r15, r14
cmp qword [r14 + 0x48], 0
je 0x528af8
xor edi, edi
cmp qword [r15 + 0x58], rdi
jne 0x528a71
mov rcx, qword [r15 + 0x18]
call qword [case.0x534e6c.1]
test rax, rax
mov rsi, rax
je 0x52912b
mov edx, gethostbyaddr
mov rcx, rax
mov rdi, rax
call qword [sym.imp.msvcrt.dll_strrchr]
mov edx, 0x5c
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.msvcrt.dll_strrchr]
test rbx, rbx
je 0x528a4a
test rax, rax
je 0x528a44
cmp rbx, rax
mov rdi, rax
cmova rdi, rbx
inc rdi
jmp 0x528a53
lea rdi, [rbx + 1]
jmp 0x528a53
test rax, rax
je 0x528a53
lea rdi, [rax + 1]
mov rcx, rdi
call qword [case.0x534e6c.1]
mov rcx, rsi
mov rdi, rax
call qword [fcn.00443590]
test rdi, rdi
je 0x52912b
mov rax, qword [r15 + 0x58]
mov rdx, rdi
lea r8, str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
test rax, rax
lea rcx, [rsp + 0x30]
mov r9, r12
cmovne rdx, rax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x38]
call fcn.00528030
test rdi, rdi
mov ebp, eax
je 0x528aad
mov rcx, rdi
call qword [fcn.00443590]
test ebp, ebp
je 0x528bbf
test r13, r13
je 0x528ae6
nop
nop
cmp dword [r13 + 8], 1
mov rdi, qword [r13]
jg 0x528ad5
mov rcx, qword [r13 + 0x10]
call qword [fcn.00443590]
mov rcx, r13
call qword [fcn.00443590]
test rdi, rdi
mov r13, rdi
jne 0x528ac0
mov rcx, qword [rsp + 0x40]
call qword [fcn.00443590]
mov eax, ebp
jmp 0x529292
test byte [r14 + 0x50], 0x51
je 0x528bbf
cmp qword [r14 + 0x58], 0
jne 0x528b81
mov rcx, qword [r14 + 0x18]
call qword [case.0x534e6c.1]
test rax, rax
mov rsi, rax
jne 0x528b20
xor edi, edi
jmp 0x528b83
mov edx, gethostbyaddr
mov rcx, rax
mov rdi, rax
call qword [sym.imp.msvcrt.dll_strrchr]
mov edx, 0x5c
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.msvcrt.dll_strrchr]
test rbx, rbx
je 0x528b61
test rax, rax
je 0x528b5b
cmp rbx, rax
mov rdi, rax
cmova rdi, rbx
inc rdi
jmp 0x528b6a
lea rdi, [rbx + 1]
jmp 0x528b6a
test rax, rax
je 0x528b6a
lea rdi, [rax + 1]
mov rcx, rdi
call qword [case.0x534e6c.1]
mov rcx, rsi
mov rdi, rax
call qword [fcn.00443590]
jmp 0x528b83
xor edi, edi
mov rax, qword [r14 + 0x58]
mov r9, rdi
lea r8, str.__filename__s_
test rax, rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
cmovne r9, rax
call fcn.00528030
test rdi, rdi
mov ebp, eax
je 0x528bb7
mov rcx, rdi
call qword [fcn.00443590]
test ebp, ebp
jne 0x528ab5
mov r9, qword [r15 + 0x38]
test r9, r9
je 0x528be8
lea r8, str._r_nContent_Type:__s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x528ab5
mov rdi, qword [r15 + 0x40]
test rdi, rdi
je 0x528c1d
mov r9, qword [rdi]
lea r8, str._r_n_s
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x52916b
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x528bf1
test ebp, ebp
jne 0x52916b
lea r8, str._r_n_r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.00528030
test eax, eax
mov ebp, eax
jne 0x528ab5
mov eax, dword [r14 + 0x50]
test al, 1
jne 0x528e0e
test al, 2
jne 0x528e0e
test al, 0x10
je 0x528d06
mov rsi, qword [r14 + 0x28]
movsxd rdi, dword [r14 + 0x30]
lea ecx, [rbp + 0x20]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov rbx, rax
je 0x529098
test rdi, rdi
mov qword [rax], 0
jne 0x528c9f
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rcx, [rdi + 1]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x5290a2
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.004435a0
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rdi
mov byte [rdi + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rbx + 8], 1
test rax, rax
je 0x528cf5
add qword [rsp + 0x38], rdi
mov qword [rax], rbx
mov qword [rsp + 0x30], rbx
xor ebp, ebp
jmp 0x528fce
add qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
xor ebp, ebp
jmp 0x528fce
test al, 0x40
je 0x528d67
mov rdi, qword [r14 + 0x60]
movsxd rbx, dword [r14 + 0x20]
mov ecx, 0x20
call qword [sub.msvcrt.dll_malloc]
test rax, rax
je 0x5290b5
mov rcx, qword [rsp + 0x30]
mov qword [rax], 0
mov qword [rax + 0x10], rdi
test rcx, rcx
mov dword [rax + 8], 2
je 0x528d56
add qword [rsp + 0x38], rbx
mov qword [rcx], rax
mov qword [rsp + 0x30], rax
xor ebp, ebp
jmp 0x528fce
add qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
xor ebp, ebp
jmp 0x528fce
mov rsi, qword [r14 + 0x18]
movsxd rdi, dword [r14 + 0x20]
mov ecx, 0x20
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov rbx, rax
je 0x5290bf
test rdi, rdi
mov qword [rax], 0
jne 0x528da7
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rcx, [rdi + 1]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x5290c9
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.004435a0
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rdi
mov byte [rdi + rax], 0
mov rax, qword [rsp + 0x30]
mov dword [rbx + 8], 1
test rax, rax
je 0x528dfd
add qword [rsp + 0x38], rdi
mov qword [rax], rbx
mov qword [rsp + 0x30], rbx
xor ebp, ebp
jmp 0x528fce
add qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
xor ebp, ebp
jmp 0x528fce
mov rdx, qword [r15 + 0x18]
lea rcx, [0x005634d8]
call fcn.0052ab00
test eax, eax
je 0x528e2e
mov rax, qword [sym.imp.msvcrt.dll__iob]
mov r12, rax
jmp 0x528e49
mov rcx, qword [r15 + 0x18]
lea rdx, [0x00563164]
call qword [sym.imp.msvcrt.dll_fopen]
mov r12, rax
mov rax, qword [sym.imp.msvcrt.dll__iob]
test r12, r12
je 0x529248
cmp r12, rax
je 0x528ee2
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fclose]
mov rbx, qword [r15 + 0x18]
mov ecx, 0x20
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov rdi, rax
je 0x5290e5
mov qword [rax], 0
mov qword [rax + 0x10], rbx
mov dword [rax + 8], 3
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x528ea5
mov qword [rax], rdi
mov qword [rsp + 0x30], rdi
jmp 0x528eaa
mov qword [rsp + 0x30], rdi
mov rdx, qword [rdi + 0x10]
lea rcx, [0x005634d8]
call fcn.0052ab00
test eax, eax
jne 0x528edb
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll__stati64]
test eax, eax
jne 0x528edb
mov rax, qword [rsp + 0x78]
add qword [rsp + 0x38], rax
xor ebp, ebp
jmp 0x528fce
lea rcx, [rsp + 0xa0]
mov r9, r12
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.msvcrt.dll_fread]
test rax, rax
mov rdi, rax
je 0x528fce
mov rsi, qword [rsp + 0x30]
xor ebp, ebp
mov ecx, 0x20
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov rbx, rax
je 0x5290e5
test rdi, rdi
mov qword [rax], rbp
jne 0x528f4a
lea rdi, [rsp + 0xa0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rcx, [rdi + 1]
call qword [sub.msvcrt.dll_malloc]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x5290dc
lea rdx, [rsp + 0xa0]
mov r8, rdi
mov rcx, rax
call fcn.004435a0
test rsi, rsi
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x18], rdi
mov byte [rdi + rax], bpl
mov dword [rbx + 8], 1
je 0x528f99
mov qword [rsi], rbx
mov qword [rsp + 0x30], rbx
mov rsi, rbx
jmp 0x528fa1
mov rsi, rbx
mov qword [rsp + 0x30], rbx
add qword [rsp + 0x38], rdi
lea rcx, [rsp + 0xa0]
mov r9, r12
mov edx, 1
mov r8d, 0x200
call qword [sym.imp.msvcrt.dll_fread]
test rax, rax
mov rdi, rax
jne 0x528f11
mov r15, qword [r15 + 0x48]
mov r12, qword [rsp + 0x48]
test r15, r15
jne 0x5289e0
cmp qword [r14 + 0x48], 0
je 0x529056
lea r8, str._r_n___s__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, r12
call fcn.00528030
mov rcx, r12
mov ebp, eax
call qword [fcn.00443590]
test ebp, ebp
je 0x52905b
mov rsi, qword [rsp + 0x40]
test r13, r13
je 0x529046
nop
nop
cmp dword [r13 + 8], 1
mov rdi, qword [r13]
jg 0x529035
mov rcx, qword [r13 + 0x10]
call qword [fcn.00443590]
mov rcx, r13
call qword [fcn.00443590]
test rdi, rdi
mov r13, rdi
jne 0x529020
mov rcx, rsi
call qword [fcn.00443590]
mov eax, ebp
jmp 0x529292
mov r12, qword [rsp + 0x48]
mov r14, qword [r14]
test r14, r14
je 0x5291a8
mov rsi, qword [rsp + 0x40]
xor r15d, r15d
jmp 0x5287f0
mov rsi, qword [rsp + 0x40]
mov ebp, 0x1b
jmp 0x529014
mov rcx, rbx
call qword [fcn.00443590]
mov rsi, qword [rsp + 0x40]
mov ebp, 0x1b
jmp 0x529014
mov ebp, 0x1b
jmp 0x528ab5
mov rcx, rbx
call qword [fcn.00443590]
mov ebp, 0x1b
jmp 0x528ab5
mov ebp, 0x1b
jmp 0x528ab5
mov ebp, 0x1b
jmp 0x528ab5
mov rcx, rbx
call qword [fcn.00443590]
mov ebp, 0x1b
jmp 0x528ab5
mov rcx, rbx
call qword [fcn.00443590]
test r13, r13
je 0x529116
nop
nop
cmp dword [r13 + 8], 1
mov rdi, qword [r13]
jg 0x529105
mov rcx, qword [r13 + 0x10]
call qword [fcn.00443590]
mov rcx, r13
call qword [fcn.00443590]
test rdi, rdi
mov r13, rdi
jne 0x5290f0
mov rcx, qword [rsp + 0x40]
call qword [fcn.00443590]
mov eax, 0x1b
jmp 0x529292
test r13, r13
je 0x529156
cmp dword [r13 + 8], 1
mov rdi, qword [r13]
jg 0x529145
mov rcx, qword [r13 + 0x10]
call qword [fcn.00443590]
mov rcx, r13
call qword [fcn.00443590]
test rdi, rdi
mov r13, rdi
jne 0x529130
mov rcx, qword [rsp + 0x40]
call qword [fcn.00443590]
mov eax, 0x1b
jmp 0x529292
test r13, r13
je 0x529196
cmp dword [r13 + 8], 1
mov rdi, qword [r13]
jg 0x529185
mov rcx, qword [r13 + 0x10]
call qword [fcn.00443590]
mov rcx, r13
call qword [fcn.00443590]
test rdi, rdi
mov r13, rdi
jne 0x529170
mov rcx, qword [rsp + 0x40]
call qword [fcn.00443590]
mov eax, ebp
jmp 0x529292
test ebp, ebp
je 0x5291ca
mov rsi, qword [rsp + 0x40]
jmp 0x529014
mov rsi, qword [rsp + 0x40]
jmp 0x529014
mov rsi, qword [rsp + 0x40]
jmp 0x529014
mov rsi, qword [rsp + 0x40]
lea r8, str._r_n___s___r_n
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r9, rsi
call fcn.00528030
test eax, eax
mov ebx, eax
je 0x529226
test r13, r13
je 0x529219
cmp dword [r13 + 8], 1
mov rdi, qword [r13]
jg 0x529208
mov rcx, qword [r13 + 0x10]
call qword [fcn.00443590]
mov rcx, r13
call qword [fcn.00443590]
test rdi, rdi
mov r13, rdi
jne 0x5291f3
mov rcx, rsi
call qword [fcn.00443590]
mov eax, ebx
jmp 0x529292
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
mov rcx, rsi
call qword [fcn.00443590]
mov rdx, qword [rsp + 0x50]
mov eax, ebx
mov qword [rdx], r13
jmp 0x529292
test r13, r13
je 0x529276
nop
cmp dword [r13 + 8], 1
mov rdi, qword [r13]
jg 0x529265
mov rcx, qword [r13 + 0x10]
call qword [fcn.00443590]
mov rcx, r13
call qword [fcn.00443590]
test rdi, rdi
mov r13, rdi
jne 0x529250
mov rcx, qword [rsp + 0x40]
call qword [fcn.00443590]
mov rdx, qword [rsp + 0x50]
mov eax, 0x1a
mov qword [rdx], 0
mov r13, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2d8]
mov rbp, qword [rsp + 0x2e8]
mov rsi, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2b8]
mov r14, qword [rsp + 0x2c0]
mov r12, qword [rsp + 0x2d0]
mov rbx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2a0]
call fcn.0055e990
add rsp, 0x2f8
ret