Function at 0x40d010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x46e140]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 0x10], 0
jne 0x40d05d
mov eax, dword [ebp - 0x24]
jmp 0x40d61e
call fcn.0040dd00
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40d075
mov eax, 0x1b
jmp 0x40d61e
cmp dword [ebp + 0x14], 0
je 0x40d086
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x23c], ecx
jmp 0x40d090
mov dword [ebp - 0x23c], str.Content_Type:_multipart_form_data
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x23c]
push eax
push str._s__boundary_s_r_n
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d7a0
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d0dd
cmp dword [ebp - 8], 0
je 0x40d0d1
mov edx, dword [ebp - 8]
push edx
call dword [0x468848]
add esp, 4
mov dword [ebp - 8], 0
xor eax, eax
jne 0x40d0b7
mov eax, dword [ebp - 0x24]
jmp 0x40d61e
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x18]
or edx, dword [ebp - 0x14]
je 0x40d10e
push 0x46897c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d10e
jmp 0x40d554
mov edx, dword [ebp - 8]
push edx
push str.___s_r_n
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d7a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d135
jmp 0x40d554
push str.Content_Disposition:_form_data__name_
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d158
jmp 0x40d554
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push edx
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040d630
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d186
jmp 0x40d554
push 0x4689b0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d1a9
jmp 0x40d554
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x24], 0
je 0x40d211
cmp dword [ebp - 0x1c], 0
je 0x40d1cc
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x468848]
add esp, 4
mov dword [ebp - 0x1c], 0
xor edx, edx
jne 0x40d1b2
call fcn.0040dd00
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40d1ea
mov dword [ebp - 0x24], 0x1b
jmp 0x40d554
mov eax, dword [ebp - 0x1c]
push eax
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040d7a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d211
jmp 0x40d554
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x24], 0
je 0x40d26b
mov edx, dword [ebp - 0x1c]
push edx
push str._r_n___s_r_nContent_Disposition:_attachment
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d7a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d247
jmp 0x40d50d
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040d820
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d269
jmp 0x40d50d
jmp 0x40d2ac
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 0x51
je 0x40d2ac
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x2c], 0
jne 0x40d28a
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 1
je 0x40d2a1
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040d820
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d2ac
jmp 0x40d50d
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1c], 0
je 0x40d2df
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1c]
push eax
push str._r_nContent_Type:__s
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040d7a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d2df
jmp 0x40d50d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x40d31f
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push str._r_n_s
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040d7a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d314
jmp 0x40d31f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x40d2e8
cmp dword [ebp - 0x24], 0
je 0x40d32a
jmp 0x40d50d
push str._r_n_r_n
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0040d7a0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d34d
jmp 0x40d50d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 1
jne 0x40d367
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
and ecx, 2
je 0x40d471
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
push 0x468a30
call fcn.00423e30
add esp, 8
test eax, eax
je 0x40d38c
call fcn.00448b12
mov dword [ebp - 0x240], eax
jmp 0x40d3a6
push 0x468a34
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00448afb
add esp, 8
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40d43e
call fcn.00448b12
cmp dword [ebp - 0x2c], eax
je 0x40d3ef
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00447d70
add esp, 4
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push 3
lea edx, [ebp - 0x28]
push edx
call fcn.0040d630
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x40d43c
mov eax, dword [ebp - 0x2c]
push eax
push 0x200
push 1
lea ecx, [ebp - 0x238]
push ecx
call fcn.00449731
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40d43c
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x238]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.0040d630
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d43a
jmp 0x40d43c
jmp 0x40d3ef
jmp 0x40d46c
cmp dword [ebp + 8], 0
je 0x40d45c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
push str.couldnt_open_file___s_
mov edx, dword [ebp + 8]
push edx
call fcn.00420dd0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 0x24], 0x1a
jmp 0x40d4f4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x10
je 0x40d4a1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.0040d630
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x40d4f4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
and ecx, 0x40
je 0x40d4d1
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x30]
push eax
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d630
add esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x40d4f4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d630
add esp, 0x14
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d50d
cmp dword [ebp - 0x24], 0
je 0x40d217
cmp dword [ebp - 0x24], 0
je 0x40d515
jmp 0x40d554
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x24], 0
je 0x40d542
mov edx, dword [ebp - 0x1c]
push edx
push str._r_n___s__
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040d7a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d542
jmp 0x40d554
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x40d0e3
cmp dword [ebp - 0x24], 0
jne 0x40d576
mov ecx, dword [ebp - 8]
push ecx
push str._r_n___s___r_n
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0040d7a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40d5c9
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040cda0
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x40d5a2
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x468848]
add esp, 4
mov dword [ebp - 0x1c], 0
xor eax, eax
jne 0x40d588
cmp dword [ebp - 8], 0
je 0x40d5c0
mov ecx, dword [ebp - 8]
push ecx
call dword [0x468848]
add esp, 4
mov dword [ebp - 8], 0
xor edx, edx
jne 0x40d5a6
mov eax, dword [ebp - 0x24]
jmp 0x40d61e
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
cmp dword [ebp - 0x1c], 0
je 0x40d5f1
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x468848]
add esp, 4
mov dword [ebp - 0x1c], 0
xor ecx, ecx
jne 0x40d5d7
cmp dword [ebp - 8], 0
je 0x40d60f
mov edx, dword [ebp - 8]
push edx
call dword [0x468848]
add esp, 4
mov dword [ebp - 8], 0
xor eax, eax
jne 0x40d5f5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00446cea
mov esp, ebp
pop ebp
ret