Function at 0x40e4e0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3484
call fcn.0045fff0
mov eax, dword [0x481524]
xor eax, esp
mov dword [esp + 0x3480], eax
push ebx
push esi
push edi
push 0x230
lea eax, [esp + 0x44]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x34], esi
mov edi, edx
call fcn.004542b0
add esp, 0xc
push edi
lea eax, [esp + 0x274]
mov ebx, esi
call fcn.0040e150
add esp, 4
push edi
push 0x472618
mov edi, 0x104
lea ebx, [esp + 0x1388]
mov eax, esi
call fcn.0040a020
mov ecx, ebx
push 0x5c
push ecx
call fcn.0044e8d0
mov ebx, eax
xor edi, edi
add esp, 0x10
cmp ebx, edi
je 0x40e561
mov byte [ebx], 0
inc ebx
or eax, 0xffffffff
push 0x8000
lea edx, [esp + 0x24]
push 0x200
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edi
call fcn.0044cf12
add esp, 0xc
test eax, eax
jne 0x40e87f
push 0x8000
lea eax, [esp + 0x1c]
push 0x200
push eax
call fcn.0044cf12
add esp, 0xc
test eax, eax
jne 0x40e87f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x27c]
push eax
push ebx
lea ecx, [esp + 0x1390]
mov edx, esi
call fcn.0040ac10
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x2c], ebx
cmp ebx, 0xffffffff
je 0x40e6f4
mov ecx, dword [esp + 0x24]
push 0x47384c
push ecx
call fcn.0045736d
mov edi, eax
add esp, 8
mov dword [esp + 0x3c], edi
test edi, edi
je 0x40e851
mov edx, dword [esp + 0x18]
push 0x473464
push edx
call fcn.0045736d
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x40e851
push 0
push edi
call fcn.0044b14c
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.0044b14c
add esp, 0x10
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov ecx, str.POST
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e670
test dl, dl
je 0x40e66c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e670
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e650
xor eax, eax
jmp 0x40e675
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40e686
push edi
call fcn.0040de30
add esp, 4
test eax, eax
je 0x40e6e0
mov ecx, dword [esp + 0x10]
push 0
push 0xffffffffffffffff
push ecx
lea esi, [esp + 0x20]
lea ebx, [esp + 0x1494]
mov dword [esp + 0x20], 0
call fcn.0040d9f0
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x38], eax
jg 0x40e72b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1488]
push edx
push eax
push str.CGI_program_sent_malformed_HTTP_headers:___.s_
push 0x1f4
mov edx, str.Internal_Server_Error
call fcn.0040a410
add esp, 0x10
mov ebx, dword [esp + 0x2c]
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40e706
push eax
call fcn.0044fac4
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x40e718
push eax
call fcn.0044fac4
add esp, 4
test edi, edi
je 0x40e8ad
push edi
call fcn.0044f95b
jmp 0x40e8bc
lea eax, [esp + eax + 0x1488]
lea edx, [esp + 0x40]
mov dword [esp + 0x30], eax
mov byte [eax - 1], bl
push edx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x148c]
push eax
mov dword [esp + 0x3c], ecx
call fcn.0040d6d0
lea ecx, [esp + 0x48]
push str.Status
push ecx
call fcn.0040a0e0
add esp, 0x10
cmp eax, ebx
jne 0x40e770
mov eax, 0xc8
jmp 0x40e779
push eax
call fcn.0044ce2a
add esp, 4
mov esi, dword [esp + 0x28]
push eax
push str.HTTP_1.1__d_OK_r_n
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.0040b0d0
mov edi, dword [esp + 0x74]
add esp, 8
cmp edi, ebx
jle 0x40e7be
jmp 0x40e7a0
mov edx, dword [esp + ebx*8 + 0x74]
mov eax, dword [esp + ebx*8 + 0x70]
push edx
push eax
push str._s:__s_r_n
mov ecx, esi
call fcn.0040b0d0
inc ebx
add esp, 0xc
cmp ebx, edi
jl 0x40e7a0
mov eax, 2
mov ebx, 0x473568
mov ecx, esi
call fcn.0040b0a0
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov ecx, esi
call fcn.0040b0a0
mov edi, dword [esp + 0x10]
cdq
add dword [esi + 0x278], eax
push edi
push 0x2000
adc dword [esi + 0x27c], edx
lea ecx, [esp + 0x1490]
push 1
push ecx
call fcn.0044d9db
push edi
mov ebx, eax
call fcn.0044e6ab
add esp, 0x14
test eax, eax
jne 0x40e6dc
test ebx, ebx
jle 0x40e6dc
mov eax, ebx
cdq
push edx
mov edx, dword [esi + 0x234]
push eax
mov eax, dword [esi + 0x238]
push edx
push eax
push 0
lea ebx, [esp + 0x149c]
call fcn.0040afd0
add esp, 0x14
test eax, eax
jle 0x40e6dc
jmp 0x40e7e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044c8b0
add esp, 4
push eax
push str.fopen:__s
push 0x1f4
mov edx, str.Internal_Server_Error
mov ecx, esi
call fcn.0040a410
add esp, 0xc
jmp 0x40e6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044c8b0
add esp, 4
push eax
push str.Cannot_create_CGI_pipe:__s
push 0x1f4
mov edx, str.Internal_Server_Error
mov ecx, esi
call fcn.0040a410
add esp, 0xc
jmp 0x40e6f4
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x40e8bf
push eax
call fcn.0044fac4
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e8e5
push eax
call fcn.0044f95b
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3480]
xor ecx, esp
call fcn.0044aab8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x40e8f7
push eax
call fcn.0044fac4
add esp, 4
mov ecx, dword [esp + 0x348c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044aab8
mov esp, ebp
pop ebp
ret