Function at 0x4db1d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x230], eax
xorps xmm0, xmm0
mov dword [ebp - 0x210], 0
movlpd qword [ebp - 0x21c], xmm0
mov dword [ebp - 0x224], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x234], ecx
test ebx, ebx
je 0x4db749
mov ecx, edi
call fcn.004db930
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x4db259
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push eax
test esi, esi
mov eax, str.Content_Type:_multipart_form_data
cmovne eax, esi
push eax
push str._s__boundary_s_r_n
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4db6c2
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x21c]
or eax, dword [ebp - 0x218]
je 0x4db2d3
push 0x6e96ec
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4db6a8
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push str.___s_r_n
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db6a8
push str.Content_Disposition:_form_data__name_
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4db6a8
lea eax, [ebp - 0x21c]
xor edx, edx
push eax
push dword [ebx + 8]
lea ecx, [ebp - 0x210]
push dword [ebx + 4]
call fcn.004dacb0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4db6a8
push 0x6f7f60
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4db6a8
cmp dword [ebx + 0x24], eax
je 0x4db3be
push dword [ebp - 0x224]
call dword [0x74b960]
add esp, 4
mov ecx, edi
call fcn.004db930
mov dword [ebp - 0x224], eax
test eax, eax
je 0x4db6a3
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db6a8
mov edi, ebx
mov dword [ebp - 0x220], edi
cmp dword [ebx + 0x24], 0
je 0x4db3fb
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push str._r_n___s_r_nContent_Disposition:_attachment
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db6a8
mov ecx, edi
jmp 0x4db40e
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x4db42d
cmp dword [ebx + 0x2c], 0
jne 0x4db40c
test al, 1
je 0x4db425
mov ecx, ebx
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x210]
call fcn.004db0e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4db6a8
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4db45a
push eax
push str._r_nContent_Type:__s
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db6a8
mov edi, dword [edi + 0x20]
test edi, edi
je 0x4db491
push dword [edi]
lea eax, [ebp - 0x21c]
push str._r_n_s
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db6a8
mov edi, dword [edi + 4]
test edi, edi
jne 0x4db461
jmp 0x4db499
test esi, esi
jne 0x4db6a8
push str._r_n_r_n
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4db6a8
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x4db531
test al, 0x10
je 0x4db4ee
lea eax, [ebp - 0x21c]
push eax
push dword [ebx + 0x18]
lea edx, [esi + 1]
push dword [ebx + 0x14]
lea ecx, [ebp - 0x210]
call fcn.004dacb0
add esp, 0xc
mov esi, eax
jmp 0x4db648
mov ecx, dword [ebx + 0x10]
test al, 0x40
lea eax, [ebp - 0x21c]
push eax
push ecx
lea ecx, [ebp - 0x210]
je 0x4db51a
push dword [ebx + 0x30]
mov edx, 2
call fcn.004dacb0
add esp, 0xc
mov esi, eax
jmp 0x4db648
push dword [ebx + 0xc]
mov edx, 1
call fcn.004dacb0
add esp, 0xc
mov esi, eax
jmp 0x4db648
mov edi, dword [ebp - 0x220]
mov ecx, 0x6f1388
mov edx, dword [edi + 0xc]
call fcn.004d4210
test eax, eax
je 0x4db555
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
jmp 0x4db566
push 0x6f15a8
push dword [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x4db616
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push edi
cmp edi, eax
je 0x4db5b5
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [ebp - 0x21c]
mov edx, 3
lea ecx, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x220]
push 0
push dword [eax + 0xc]
call fcn.004dacb0
add esp, 0xc
mov esi, eax
jmp 0x4db648
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x4db648
lea ecx, [ebp - 0x21c]
mov edx, 1
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.004dacb0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4db648
push edi
push 0x200
lea eax, [ebp - 0x20c]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4db5d0
jmp 0x4db648
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x4db637
mov eax, dword [ebp - 0x220]
push dword [eax + 0xc]
push str.couldnt_open_file___s_
push ecx
call fcn.004ac430
add esp, 0xc
mov eax, dword [ebp - 0x230]
mov esi, 0x1a
mov dword [eax], 0
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x220], eax
test esi, esi
jne 0x4db6a8
mov edi, eax
test eax, eax
jne 0x4db3c6
mov edi, dword [ebp - 0x224]
cmp dword [ebx + 0x24], esi
je 0x4db692
push edi
push str._r_n___s__
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db6a8
mov ebx, dword [ebx]
test ebx, ebx
je 0x4db6e4
mov edi, dword [ebp - 0x22c]
jmp 0x4db2a0
mov esi, 0x1b
lea ecx, [ebp - 0x23c]
call fcn.004dae70
push dword [ebp - 0x224]
call dword [0x74b960]
add esp, 4
push dword [ebp - 0x228]
call dword [0x74b960]
mov eax, esi
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4db6a8
mov ebx, dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push ebx
push str._r_n___s___r_n
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004dae10
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db6a8
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x21c]
push edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
call dword [0x74b960]
add esp, 4
push ebx
call dword [0x74b960]
mov eax, dword [ebp - 0x230]
add esp, 4
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret