Function at 0x40cc30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x452004]
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 0x40d403
lea eax, [ebp - 0x3cc]
xor esi, esi
push eax
mov dword [ebp - 0x3a8], esi
call fcn.0040c6d0
add esp, 4
lea eax, [ebp - 0x110]
push ebx
push 0x44a068
push 0x104
push eax
lea eax, [ebp - 0x3a0]
push eax
push edi
call fcn.004062d0
add esp, 0x18
cmp dword [ebp - 0x3a0], esi
je 0x40cd4d
push ebx
push str.Error:_CGI_program___s_:_Path_too_long
push edi
call fcn.00406360
add esp, 0xc
push str.CGI_path_too_long
push str.Error:__s
push 0x1f4
push edi
call fcn.00406f20
push dword [ebp - 0x3bc]
call fcn.00424740
add esp, 0x14
push dword [ebp - 0x3c8]
call fcn.00424740
add esp, 4
jmp 0x40d35c
lea eax, [ebp - 0x110]
push 0x2f
push eax
call fcn.00423880
mov esi, eax
add esp, 8
test esi, esi
je 0x40cd6a
mov byte [esi], 0
inc esi
jmp 0x40cd75
mov word [ebp - 0x110], 0x2e
mov esi, ebx
push 0x8000
lea eax, [ebp - 0x118]
push 0x2000
push eax
call fcn.0042c873
add esp, 0xc
test eax, eax
jne 0x40d30f
push 0x8000
lea eax, [ebp - 0x120]
push 0x2000
push eax
call fcn.0042c873
add esp, 0xc
test eax, eax
jne 0x40d30f
push 0x8000
lea eax, [ebp - 0x128]
push 0x2000
push eax
call fcn.0042c873
add esp, 0xc
test eax, eax
jne 0x40d30f
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.004078e0
add esp, 0x18
mov dword [ebp - 0x3d8], eax
cmp eax, 0xffffffff
jne 0x40ce5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431e66
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.00406360
push esi
push ebx
push str.Error:_Cannot_spawn_CGI_process___s_:__s
push 0x1f4
push edi
call fcn.00406f20
add esp, 0x24
push dword [ebp - 0x3bc]
call fcn.00424740
mov eax, dword [ebp - 0x3c8]
add esp, 4
push eax
jmp 0x40d352
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.0042bba4
add esp, 4
push dword [ebp - 0x11c]
call fcn.0042bba4
add esp, 4
push dword [ebp - 0x124]
call fcn.0042bba4
add esp, 4
mov dword [ebp - 0x124], 0xffffffff
mov dword [ebp - 0x11c], 0xffffffff
mov dword [ebp - 0x118], 0xffffffff
push 0x44cba0
push dword [ebp - 0x114]
call fcn.00429b06
mov esi, eax
add esp, 8
mov dword [ebp - 0x3ac], esi
test esi, esi
jne 0x40cf56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431e66
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.00406360
push esi
push str.Error:_CGI_can_not_open_fdin_nfopen:__s
push 0x1f4
push edi
call fcn.00406f20
push dword [ebp - 0x3bc]
call fcn.00424740
add esp, 0x24
jmp 0x40d2e2
push 0x44a7a4
push dword [ebp - 0x120]
call fcn.00429b06
add esp, 8
mov dword [ebp - 0x39c], eax
test eax, eax
jne 0x40cf99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431e66
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.00406360
push esi
push str.Error:_CGI_can_not_open_fdout_nfopen:__s
jmp 0x40cf38
push 0x44a7a4
push dword [ebp - 0x128]
call fcn.00429b06
add esp, 8
mov dword [ebp - 0x3a4], eax
test eax, eax
jne 0x40cfdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431e66
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.00406360
push esi
push str.Error:_CGI_can_not_open_fdout_nfopen:__s
jmp 0x40cf38
push 0
push esi
call fcn.00429434
push 0
push dword [ebp - 0x39c]
call fcn.00429434
push 0
push dword [ebp - 0x3a4]
call fcn.00429434
mov eax, dword [ebp - 0x39c]
add esp, 0x18
cmp dword [edi + 0x54], 0
mov dword [ebp - 0x3e8], eax
jg 0x40d027
jl 0x40d01e
cmp dword [edi + 0x50], 0
ja 0x40d027
cmp dword [edi + 0x2d8], 0
je 0x40d05c
sub esp, 8
mov edx, esi
mov ecx, edi
call fcn.0040c1f0
add esp, 8
test eax, eax
jne 0x40d05c
push ebx
push str.Error:_CGI_program___s_:_Forward_body_data_failed
push edi
call fcn.00406360
add esp, 0xc
push dword [ebp - 0x3bc]
call fcn.00424740
add esp, 4
jmp 0x40d2e2
push esi
call fcn.00427930
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.0042475b
mov esi, eax
add esp, 4
mov dword [ebp - 0x3a8], esi
test esi, esi
jne 0x40d0cf
push 0x4000
push str.Error:_Not_enough_memory_for_CGI_buffer___u_bytes_
push 0x1f4
push edi
call fcn.00406f20
push 0x4000
push ebx
push str.Error:_CGI_program___s_:_Not_enough_memory_for_buffer___u_bytes_
push edi
call fcn.00406360
push dword [ebp - 0x3bc]
call fcn.00424740
add esp, 0x24
jmp 0x40d2e2
mov ecx, dword [ebp - 0x39c]
lea eax, [ebp - 0x3a0]
push eax
push 0x4000
push esi
mov edx, edi
call fcn.0040bb20
add esp, 0xc
mov dword [ebp - 0x3d0], eax
test eax, eax
jg 0x40d186
mov ecx, dword [ebp - 0x3a4]
mov edx, edi
push 0x4000
push esi
call fcn.004083d0
add esp, 8
mov dword [ebp - 0x3b0], eax
push esi
test eax, eax
jle 0x40d13a
push eax
push ebx
push str.Error:_CGI_program___s__sent_error_message:___.s_
push edi
call fcn.00406360
add esp, 0x14
push esi
push dword [ebp - 0x3b0]
push ebx
push str.Error:_CGI_program___s__sent_error_message:___.s_
jmp 0x40d165
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.00406360
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.00406f20
add esp, 0x18
push dword [ebp - 0x3bc]
call fcn.00424740
add esp, 4
jmp 0x40d2e2
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.0040b710
mov edx, str.Status
lea ecx, [ebp - 0x398]
mov esi, 0x44b258
call fcn.004065d0
mov ebx, eax
test ebx, ebx
je 0x40d1ed
push ebx
call fcn.0042caf6
add esp, 4
mov dword [edi + 0x300], eax
mov esi, ebx
movzx eax, byte [esi]
push eax
call fcn.00428170
add esp, 4
test eax, eax
jne 0x40d1ea
cmp byte [esi], 0x20
jne 0x40d20f
inc esi
jmp 0x40d1d5
mov edx, str.Location
lea ecx, [ebp - 0x398]
call fcn.004065d0
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.004065d0
mov ecx, eax
call fcn.00406730
test eax, eax
jne 0x40d234
mov dword [edi + 0x2e8], 1
push esi
push dword [edi + 0x300]
push str.HTTP_1.1__d__s_r_n
push edi
call fcn.00408ca0
mov ebx, dword [ebp - 0x330]
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x40d281
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.00408ca0
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x40d260
push 2
mov edx, 0x44c54c
mov ecx, edi
call fcn.00408950
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.00408950
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.0040ac50
push dword [ebp - 0x3bc]
call fcn.00424740
add esp, 0x14
mov eax, dword [ebp - 0x3c8]
push eax
call fcn.00424740
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 0x40d35c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431e66
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.00406360
push esi
push str.Error:_Cannot_create_CGI_pipe:__s
push 0x1f4
push edi
call fcn.00406f20
push dword [ebp - 0x3bc]
call fcn.00424740
add esp, 0x24
push dword [ebp - 0x3c8]
call fcn.00424740
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x40d370
push eax
call fcn.0042bba4
add esp, 4
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffffffff
je 0x40d384
push eax
call fcn.0042bba4
add esp, 4
mov eax, dword [ebp - 0x3ac]
test eax, eax
je 0x40d396
push eax
call fcn.00427930
jmp 0x40d3a7
mov eax, dword [ebp - 0x114]
cmp eax, 0xffffffff
je 0x40d3aa
push eax
call fcn.0042bba4
add esp, 4
mov eax, dword [ebp - 0x39c]
test eax, eax
je 0x40d3bc
push eax
call fcn.00427930
jmp 0x40d3cd
mov eax, dword [ebp - 0x120]
cmp eax, 0xffffffff
je 0x40d3d0
push eax
call fcn.0042bba4
add esp, 4
mov eax, dword [ebp - 0x3a4]
test eax, eax
je 0x40d3e2
push eax
call fcn.00427930
jmp 0x40d3f3
mov eax, dword [ebp - 0x128]
cmp eax, 0xffffffff
je 0x40d3f6
push eax
call fcn.0042bba4
add esp, 4
test esi, esi
je 0x40d403
push esi
call fcn.00424740
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422702
mov esp, ebp
pop ebp
ret