Function at 0x40cda0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x118], 0xffffffff
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x120], 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0xffffffff
mov ebx, edx
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x124], 0xffffffff
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x3a4], eax
movlpd qword [ebp - 0x3f8], xmm0
movlpd qword [ebp - 0x3f0], xmm0
mov dword [ebp - 0x3e4], eax
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3dc], eax
test edi, edi
je 0x40d573
lea eax, [ebp - 0x3cc]
xor esi, esi
push eax
mov dword [ebp - 0x3a8], esi
call fcn.0040c840
add esp, 4
lea eax, [ebp - 0x110]
push ebx
push 0x44c068
push 0x104
push eax
lea eax, [ebp - 0x3a0]
push eax
push edi
call fcn.00406450
add esp, 0x18
cmp dword [ebp - 0x3a0], esi
je 0x40cebd
push ebx
push str.Error:_CGI_program___s_:_Path_too_long
push edi
call fcn.004064e0
add esp, 0xc
push str.CGI_path_too_long
push str.Error:__s
push 0x1f4
push edi
call fcn.004070a0
push dword [ebp - 0x3bc]
call fcn.00425f00
add esp, 0x14
push dword [ebp - 0x3c8]
call fcn.00425f00
add esp, 4
jmp 0x40d4cc
lea eax, [ebp - 0x110]
push 0x2f
push eax
call fcn.00424de0
mov esi, eax
add esp, 8
test esi, esi
je 0x40ceda
mov byte [esi], 0
inc esi
jmp 0x40cee5
mov word [ebp - 0x110], 0x2e
mov esi, ebx
push 0x8000
lea eax, [ebp - 0x118]
push 0x2000
push eax
call fcn.0042df23
add esp, 0xc
test eax, eax
jne 0x40d47f
push 0x8000
lea eax, [ebp - 0x120]
push 0x2000
push eax
call fcn.0042df23
add esp, 0xc
test eax, eax
jne 0x40d47f
push 0x8000
lea eax, [ebp - 0x128]
push 0x2000
push eax
call fcn.0042df23
add esp, 0xc
test eax, eax
jne 0x40d47f
lea eax, [ebp - 0x110]
mov edx, esi
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x118]
push eax
push ecx
push dword [ebp - 0x3c8]
mov ecx, edi
call fcn.00407a60
add esp, 0x18
mov dword [ebp - 0x3d8], eax
cmp eax, 0xffffffff
jne 0x40cfcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433516
add esp, 4
mov esi, eax
push esi
push ebx
push str.Error:_CGI_program___s_:_Can_not_spawn_CGI_process:__s
push edi
call fcn.004064e0
push esi
push ebx
push str.Error:_Cannot_spawn_CGI_process___s_:__s
push 0x1f4
push edi
call fcn.004070a0
add esp, 0x24
push dword [ebp - 0x3bc]
call fcn.00425f00
mov eax, dword [ebp - 0x3c8]
add esp, 4
push eax
jmp 0x40d4c2
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0x118]
call esi
push 0
push 1
push dword [ebp - 0x11c]
call esi
push 0
push 1
push dword [ebp - 0x124]
call esi
push 0
push 1
push dword [ebp - 0x114]
call esi
push 0
push 1
push dword [ebp - 0x120]
call esi
push 0
push 1
push dword [ebp - 0x128]
call esi
push dword [ebp - 0x118]
call fcn.0042d254
add esp, 4
push dword [ebp - 0x11c]
call fcn.0042d254
add esp, 4
push dword [ebp - 0x124]
call fcn.0042d254
add esp, 4
mov dword [ebp - 0x124], 0xffffffff
mov dword [ebp - 0x11c], 0xffffffff
mov dword [ebp - 0x118], 0xffffffff
push 0x44ebd0
push dword [ebp - 0x114]
call fcn.0042b1b6
mov esi, eax
add esp, 8
mov dword [ebp - 0x3ac], esi
test esi, esi
jne 0x40d0c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433516
add esp, 4
mov esi, eax
push esi
push ebx
push str.Error:_CGI_program___s_:_Can_not_open_stdin:__s
push edi
call fcn.004064e0
push esi
push str.Error:_CGI_can_not_open_fdin_nfopen:__s
push 0x1f4
push edi
call fcn.004070a0
push dword [ebp - 0x3bc]
call fcn.00425f00
add esp, 0x24
jmp 0x40d452
push 0x44c7dc
push dword [ebp - 0x120]
call fcn.0042b1b6
add esp, 8
mov dword [ebp - 0x39c], eax
test eax, eax
jne 0x40d109
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433516
add esp, 4
mov esi, eax
push esi
push ebx
push str.Error:_CGI_program___s_:_Can_not_open_stdout:__s
push edi
call fcn.004064e0
push esi
push str.Error:_CGI_can_not_open_fdout_nfopen:__s
jmp 0x40d0a8
push 0x44c7dc
push dword [ebp - 0x128]
call fcn.0042b1b6
add esp, 8
mov dword [ebp - 0x3a4], eax
test eax, eax
jne 0x40d14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433516
add esp, 4
mov esi, eax
push esi
push ebx
push str.Error:_CGI_program___s_:_Can_not_open_stderr:__s
push edi
call fcn.004064e0
push esi
push str.Error:_CGI_can_not_open_fdout_nfopen:__s
jmp 0x40d0a8
push 0
push esi
call fcn.0042aae4
push 0
push dword [ebp - 0x39c]
call fcn.0042aae4
push 0
push dword [ebp - 0x3a4]
call fcn.0042aae4
mov eax, dword [ebp - 0x39c]
add esp, 0x18
cmp dword [edi + 0x54], 0
mov dword [ebp - 0x3e8], eax
jg 0x40d197
jl 0x40d18e
cmp dword [edi + 0x50], 0
ja 0x40d197
cmp dword [edi + 0x2d8], 0
je 0x40d1cc
sub esp, 8
mov edx, esi
mov ecx, edi
call fcn.0040c360
add esp, 8
test eax, eax
jne 0x40d1cc
push ebx
push str.Error:_CGI_program___s_:_Forward_body_data_failed
push edi
call fcn.004064e0
add esp, 0xc
push dword [ebp - 0x3bc]
call fcn.00425f00
add esp, 4
jmp 0x40d452
push esi
call fcn.004290f0
add esp, 4
mov dword [ebp - 0x114], 0xffffffff
xor eax, eax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3a0], eax
push 0x4000
call fcn.00425f1b
mov esi, eax
add esp, 4
mov dword [ebp - 0x3a8], esi
test esi, esi
jne 0x40d23f
push 0x4000
push str.Error:_Not_enough_memory_for_CGI_buffer___u_bytes_
push 0x1f4
push edi
call fcn.004070a0
push 0x4000
push ebx
push str.Error:_CGI_program___s_:_Not_enough_memory_for_buffer___u_bytes_
push edi
call fcn.004064e0
push dword [ebp - 0x3bc]
call fcn.00425f00
add esp, 0x24
jmp 0x40d452
mov ecx, dword [ebp - 0x39c]
lea eax, [ebp - 0x3a0]
push eax
push 0x4000
push esi
mov edx, edi
call fcn.0040bc90
add esp, 0xc
mov dword [ebp - 0x3d0], eax
test eax, eax
jg 0x40d2f6
mov ecx, dword [ebp - 0x3a4]
mov edx, edi
push 0x4000
push esi
call fcn.00408550
add esp, 8
mov dword [ebp - 0x3b0], eax
push esi
test eax, eax
jle 0x40d2aa
push eax
push ebx
push str.Error:_CGI_program___s__sent_error_message:___.s_
push edi
call fcn.004064e0
add esp, 0x14
push esi
push dword [ebp - 0x3b0]
push ebx
push str.Error:_CGI_program___s__sent_error_message:___.s_
jmp 0x40d2d5
mov esi, dword [ebp - 0x3a0]
push esi
push 0x4000
push str.Error:_CGI_program_sent_malformed_or_too_big____u_bytes__HTTP_headers:___.s_
push edi
call fcn.004064e0
add esp, 0x14
push dword [ebp - 0x3a8]
push esi
push 0x4000
push str.Error:_CGI_program_sent_malformed_or_too_big____u_bytes__HTTP_headers:___.s_
push 0x1f4
push edi
call fcn.004070a0
add esp, 0x18
push dword [ebp - 0x3bc]
call fcn.00425f00
add esp, 4
jmp 0x40d452
add eax, esi
mov dword [ebp - 0x3b0], esi
lea edx, [ebp - 0x398]
mov dword [ebp - 0x3d4], eax
lea ecx, [ebp - 0x3b0]
mov byte [eax - 1], 0
call fcn.0040b880
mov edx, str.Status
lea ecx, [ebp - 0x398]
mov esi, 0x44d288
call fcn.00406750
mov ebx, eax
test ebx, ebx
je 0x40d35d
push ebx
call fcn.0042e1a6
add esp, 4
mov dword [edi + 0x300], eax
mov esi, ebx
movzx eax, byte [esi]
push eax
call fcn.00429820
add esp, 4
test eax, eax
jne 0x40d35a
cmp byte [esi], 0x20
jne 0x40d37f
inc esi
jmp 0x40d345
mov edx, str.Location
lea ecx, [ebp - 0x398]
call fcn.00406750
neg eax
sbb eax, eax
and eax, 0x66
add eax, 0xc8
mov dword [edi + 0x300], eax
mov edx, str.Connection
lea ecx, [ebp - 0x398]
call fcn.00406750
mov ecx, eax
call fcn.004068b0
test eax, eax
jne 0x40d3a4
mov dword [edi + 0x2e8], 1
push esi
push dword [edi + 0x300]
push str.HTTP_1.1__d__s_r_n
push edi
call fcn.00408e20
mov ebx, dword [ebp - 0x330]
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x40d3f1
nop word [eax + eax]
push dword [ebp + esi*8 - 0x328]
push dword [ebp + esi*8 - 0x32c]
push str._s:__s_r_n
push edi
call fcn.00408e20
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x40d3d0
push 2
mov edx, 0x44e57c
mov ecx, edi
call fcn.00408ad0
mov eax, dword [ebp - 0x3a0]
add esp, 4
sub eax, dword [ebp - 0x3d0]
mov ecx, edi
mov edx, dword [ebp - 0x3d4]
push eax
call fcn.00408ad0
add esp, 4
cdq
add dword [edi + 0x2c0], eax
mov ecx, edi
adc dword [edi + 0x2c4], edx
lea edx, [ebp - 0x3f8]
push closesocket
push 0xffffffffffffffff
push 0
push 0
call fcn.0040add0
push dword [ebp - 0x3bc]
call fcn.00425f00
add esp, 0x14
mov eax, dword [ebp - 0x3c8]
push eax
call fcn.00425f00
add esp, 4
mov esi, dword [ebp - 0x3d8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x3a8]
jmp 0x40d4cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433516
add esp, 4
mov esi, eax
push esi
push ebx
push str.Error:_CGI_program___s_:_Can_not_create_CGI_pipes:__s
push edi
call fcn.004064e0
push esi
push str.Error:_Cannot_create_CGI_pipe:__s
push 0x1f4
push edi
call fcn.004070a0
push dword [ebp - 0x3bc]
call fcn.00425f00
add esp, 0x24
push dword [ebp - 0x3c8]
call fcn.00425f00
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x40d4e0
push eax
call fcn.0042d254
add esp, 4
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffffffff
je 0x40d4f4
push eax
call fcn.0042d254
add esp, 4
mov eax, dword [ebp - 0x3ac]
test eax, eax
je 0x40d506
push eax
call fcn.004290f0
jmp 0x40d517
mov eax, dword [ebp - 0x114]
cmp eax, 0xffffffff
je 0x40d51a
push eax
call fcn.0042d254
add esp, 4
mov eax, dword [ebp - 0x39c]
test eax, eax
je 0x40d52c
push eax
call fcn.004290f0
jmp 0x40d53d
mov eax, dword [ebp - 0x120]
cmp eax, 0xffffffff
je 0x40d540
push eax
call fcn.0042d254
add esp, 4
mov eax, dword [ebp - 0x3a4]
test eax, eax
je 0x40d552
push eax
call fcn.004290f0
jmp 0x40d563
mov eax, dword [ebp - 0x128]
cmp eax, 0xffffffff
je 0x40d566
push eax
call fcn.0042d254
add esp, 4
test esi, esi
je 0x40d573
push esi
call fcn.00425f00
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c62
mov esp, ebp
pop ebp
ret