Function at 0x406020
Capabilities:
Terminate process

Disassembly:
sub esp, 0x50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
push 0x402f60
push 8
push 0x2e
lea eax, [esp + 0x2c]
mov esi, edx
push 0x40f1c0
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCR110.dll_bsearch]
add esp, 0x14
test eax, eax
je 0x406075
mov ebp, dword [eax + 4]
jmp 0x40607a
mov ebp, str.Unknown_Status_Code
mov ecx, ebx
mov dword [esp + 0x10], ebp
call fcn.00402f80
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR110.dll_strerror]
add esp, 4
push eax
call dword [sym.imp.MSVCR110.dll__strdup]
add esp, 4
mov dword [esp + 0x30], eax
push 0
push 0
push 3
push 0
lea ebx, [esi + 0xfc]
lea eax, [esp + 0x48]
mov dword [ebx], 0
mov dword [ebx + 4], 0
or dword [esi + 0xf8], 1
push eax
push dword [esi + 0x50]
push dword [esi + 0x4c]
call dword [sym.imp.php5.dll_php_escape_html_entities_ex]
mov edx, ebp
add esp, 0x1c
mov dword [esp + 0x14], eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4060e7
mov ebp, dword [sym.imp.MSVCR110.dll_malloc]
sub edx, esi
lea edi, [edx + 0x33]
lea eax, [edi + 0x14]
push eax
call ebp
mov esi, eax
add esp, 4
test esi, esi
je 0x406374
push dword [esp + 0x14]
lea ecx, [esi + 0x14]
push dword [esp + 0x14]
mov dword [esi + 0x10], edi
push dword [esp + 0x24]
mov dword [esi + 4], 0
push str.__doctype_html__html__head__title__d__s__title_
push edi
mov edi, dword [sym.imp.php5.dll_ap_php_snprintf]
push ecx
mov dword [esi], 0
mov dword [esi + 8], esi
mov dword [esi + 0xc], ecx
call edi
mov ecx, dword [esi + 0xc]
add esp, 0x18
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406150
sub ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [esi]
mov ecx, esi
test eax, eax
je 0x40616c
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x406164
mov eax, dword [ebx + 4]
test eax, eax
jne 0x406177
mov dword [ebx], esi
jmp 0x406179
mov dword [eax], esi
push 0x14
mov dword [ebx + 4], ecx
call ebp
add esp, 4
test eax, eax
je 0x406374
mov dword [eax + 4], 1
mov dword [eax], 0
mov dword [eax + 8], str._style__nbody__background_color:_fcfcfc__color:_333333__margin:_0__padding:0___nh1__font_size:_1.5em__font_weight:_normal__background_color:_9999cc__min_height:2em__line_height:2em__border_bottom:_1px_inset_black__margin:_0___nh1__p__padding_left:_10px___ncode.url__background_color:_eeeeee__font_family:monospace__padding:0_2px__n__style__n
mov dword [eax + 0xc], 0x15b
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4061b1
mov dword [ebx], eax
jmp 0x4061b3
mov dword [ecx], eax
push 0x14
mov dword [ebx + 4], eax
call ebp
add esp, 4
test eax, eax
je 0x406374
mov dword [eax + 4], 1
mov dword [eax], 0
mov dword [eax + 8], str.__head__body_
mov dword [eax + 0xc], 0xd
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x4061eb
mov dword [ebx], eax
jmp 0x4061ed
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4061f7
mov ebp, dword [esp + 0x10]
sub ecx, edx
mov edx, ebp
lea esi, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x406210
mov eax, dword [esp + 0x38]
sub edx, esi
add ecx, edx
add eax, 4
add ecx, eax
call fcn.00404e00
mov esi, eax
test esi, esi
je 0x406577
push dword [esp + 0x14]
push ebp
push dword [esp + 0x34]
push dword [esi + 0x10]
push dword [esi + 0xc]
call edi
mov ecx, dword [esi + 0xc]
add esp, 0x14
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406250
sub ecx, edx
mov dword [esi + 0x10], ecx
mov edx, esi
mov ecx, ebx
call fcn.00404d20
mov edx, 0xe
mov ecx, str.__body___html_
call fcn.00404d50
test eax, eax
je 0x406577
mov edx, eax
mov ecx, ebx
call fcn.00404d20
mov ebx, dword [esp + 0x18]
push 1
push dword [esp + 0x20]
mov edx, dword [ebx + 0x48]
xorps xmm0, xmm0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
movq qword [esp + 0x2c], xmm0
call fcn.00402fd0
add esp, 8
cmp dword [esp + 0x20], 0
je 0x406577
push 1
mov edx, ebx
lea ecx, [esp + 0x24]
call fcn.00403730
mov esi, dword [esp + 0x24]
mov ecx, dword [sym.imp.MSVCR110.dll_realloc]
add esp, 4
test esi, esi
jne 0x4062e5
xor ebp, ebp
push 0x4f
lea ebx, [ebp + 0x28]
lea edi, [ebp + 0x4e]
push ebp
jmp 0x4062ff
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
lea ebx, [ebp + 0x28]
cmp ebx, edi
jb 0x406310
lea edi, [ebx + 0x80]
lea eax, [edi + 1]
push eax
push esi
call ecx
mov esi, eax
add esp, 8
test esi, esi
je 0x406374
mov ecx, dword [sym.imp.MSVCR110.dll_realloc]
movq xmm0, qword [str.Content_Type:_text_html__charsetUTF_8_r_n]
movq qword [esi + ebp], xmm0
movq xmm0, qword [0x40d744]
movq qword [esi + ebp + 8], xmm0
movq xmm0, qword [0x40d74c]
movq qword [esi + ebp + 0x10], xmm0
movq xmm0, qword [0x40d754]
movq qword [esi + ebp + 0x18], xmm0
movq xmm0, qword [0x40d75c]
movq qword [esi + ebp + 0x20], xmm0
test esi, esi
jne 0x406394
xor ebx, ebx
push 0x4f
push ebx
mov dword [esp + 0x18], 0x10
lea edi, [esi + 0x4e]
call ecx
mov esi, eax
add esp, 8
test esi, esi
jne 0x4063d5
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
lea eax, [ebx + 0x10]
mov dword [esp + 0x10], eax
cmp eax, edi
jb 0x4063d5
lea edi, [eax + 0x80]
lea eax, [edi + 1]
push eax
push esi
call ecx
mov esi, eax
add esp, 8
test esi, esi
jne 0x4063d5
push str.Out_of_memory_n
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR110.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR110.dll_exit]
movq xmm0, qword [str.Content_Length:]
mov eax, dword [esp + 0x18]
movq qword [ebx + esi], xmm0
movq xmm0, qword [0x40d770]
movq qword [ebx + esi + 8], xmm0
mov eax, dword [eax + 0xfc]
xor ebx, ebx
lea ebp, [esp + 0x5b]
test eax, eax
je 0x406423
mov ecx, dword [eax + 4]
sub ecx, 0
je 0x406418
dec ecx
je 0x406413
xor ecx, ecx
jmp 0x40641b
mov ecx, dword [eax + 0xc]
jmp 0x40641b
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
add ebx, ecx
test eax, eax
jne 0x406404
mov byte [esp + 0x5b], 0
jmp 0x406430
mov eax, 0xcccccccd
mul ebx
shr edx, 3
mov al, dl
shl al, 2
dec ebp
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [ebp], bl
mov ebx, edx
test ebx, ebx
jne 0x406430
lea ebx, [esp + 0x5b]
test esi, esi
jne 0x40648a
sub ebx, ebp
mov dword [esp + 0x10], esi
lea edi, [edx + 0x4e]
cmp ebx, 0x4e
jb 0x40646f
lea edi, [ebx + 0x80]
lea eax, [edi + 1]
push eax
mov eax, dword [sym.imp.MSVCR110.dll_realloc]
push 0
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x4064b5
jmp 0x406374
mov eax, dword [esp + 0x10]
sub eax, ebp
add ebx, eax
cmp ebx, edi
jb 0x4064b5
lea edi, [ebx + 0x80]
lea eax, [edi + 1]
push eax
mov eax, dword [sym.imp.MSVCR110.dll_realloc]
push esi
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x406374
lea eax, [esp + 0x5b]
sub eax, ebp
push eax
mov eax, dword [esp + 0x14]
add eax, esi
push ebp
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
test esi, esi
jne 0x4064ef
xor ebx, ebx
push 0x4f
push ebx
lea ebp, [esi + 2]
lea edi, [esi + 0x4e]
call dword [sym.imp.MSVCR110.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406514
jmp 0x406374
lea ebp, [ebx + 2]
cmp ebp, edi
jb 0x406514
lea edi, [ebp + 0x80]
lea eax, [edi + 1]
push eax
push esi
call dword [sym.imp.MSVCR110.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x406374
mov eax, 0xa0d
mov word [ebx + esi], ax
test esi, esi
jne 0x40652b
xor ebp, ebp
push 0x4f
lea ebx, [esi + 2]
push ebp
jmp 0x40653a
lea ebx, [ebp + 2]
cmp ebx, edi
jb 0x406552
lea eax, [ebx + 0x81]
push eax
push esi
call dword [sym.imp.MSVCR110.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x406374
mov eax, 0xa0d
push ebx
mov edx, esi
mov ecx, esi
mov word [esi + ebp], ax
call fcn.00404da0
mov edx, eax
add esp, 4
test edx, edx
jne 0x4065ac
test esi, esi
je 0x406577
push esi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x406589
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.php5.dll__efree]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0040995e
add esp, 0x50
ret
mov eax, dword [edx]
mov ecx, edx
test eax, eax
je 0x4065bc
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x4065b4
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0xfc]
mov dword [ecx], eax
cmp dword [ebp + 0x100], 0
jne 0x4065d7
mov dword [ebp + 0x100], ecx
mov ebx, dword [esp + 0x30]
mov eax, 0x40d77c
test ebx, ebx
cmovne eax, ebx
mov dword [ebp + 0xfc], edx
mov edx, dword [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.004050d0
mov ecx, dword [esp + 0x38]
add esp, 4
push dword [ebp + 4]
add ecx, 4
mov edx, 0x10
call fcn.00404af0
add esp, 4
test ebx, ebx
je 0x40661f
push ebx
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.php5.dll__efree]
mov ecx, dword [esp + 0x60]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040995e
add esp, 0x50
ret