Function at 0x403d57
Capabilities:
Initialize winsock library
Query environment variable

Disassembly:
sub esp, 0x1cc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
mov dword [esp], str.WINNT
jb 0x403d7a
mov dword [esp], str.WIN32
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push ebx
call sym.stub.exe_ts_resource_ex
mov ebp, eax
push ebp
call sym.stub.exe_sapi_initialize_empty_request
push ebp
call sym.stub.exe_sapi_activate
add esp, 0x10
cmp dword [0x54dd04], ebx
jne 0x404238
mov esi, dword [esp + 0x1e0]
push 0x1f
pop ecx
mov edi, sym.stub.exe_sapi_module
rep movsd dword es:[edi], dword [esi]
call sym.stub.exe_php_output_startup
mov eax, dword [0x55948c]
push 1
mov dword [esp + 0x2c], eax
mov eax, dword [0x559490]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x20], 0x404343
mov dword [esp + 0x24], sym.stub.exe_php_printf
mov dword [esp + 0x28], 0x404938
mov dword [esp + 0x2c], 0x404757
mov dword [esp + 0x48], 0x40477c
mov dword [esp + 0x30], 0x4047c9
mov dword [esp + 0x3c], 0x4047a1
mov dword [esp + 0x40], 0x408e95
mov dword [esp + 0x44], 0x4035a2
call fcn.004b9ce9
push ebx
push dword [sym.stub.exe_executor_globals_id]
call sym.stub.exe_ts_resource_ex
push ebx
push 0x404953
push 0xf8
push sym.stub.exe_core_globals_id
call sym.stub.exe_ts_allocate_id
push ebx
push dword [sym.stub.exe_core_globals_id]
call sym.stub.exe_ts_resource_ex
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_executor_globals_id]
push 0x54dd08
push 2
mov eax, dword [eax + ecx*4 - 4]
mov byte [eax + 0x191], bl
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_executor_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x16c], 0x7f7
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov byte [eax + 0xa0], bl
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_sapi_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov byte [eax + 0x30], bl
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_sapi_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x44], ebx
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_sapi_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x50], ebx
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_sapi_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x54], ebx
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov word [eax + 0x9c], bx
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov byte [eax + 0xee], bl
mov eax, dword [ebp]
mov ecx, dword [sym.stub.exe_compiler_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x11c], ebx
call dword [sym.imp.MSVCRT.dll_setlocale]
add esp, 0x34
call dword [sym.imp.MSVCRT.dll__tzset]
lea eax, [esp + 0x4c]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x403f45
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str._nwinsock.dll_unusable.__d_n
call sym.stub.exe_php_printf
pop ecx
or eax, 0xffffffff
pop ecx
jmp 0x40423a
push ebx
push str.index_pointer
push ebx
push ebx
call sym.stub.exe_zend_register_list_destructors_ex
add esp, 0x10
mov dword [sym.stub.exe_le_index_ptr], eax
call fcn.004082db
or esi, 0xffffffff
cmp eax, esi
je 0x4041f0
push ebp
push ebx
push 0x5125a0
call sym.stub.exe_zend_register_ini_entries
push ebp
call fcn.004ba554
push ebp
push ebx
call fcn.0040ffa6
add esp, 0x18
cmp eax, esi
jne 0x403f94
push str.PHP:__Unable_to_initialize_stream_url_wrappers._n
jmp 0x4041ea
call fcn.004089f0
cmp eax, esi
jne 0x403fa7
push str.PHP:__Unable_to_initialize_info_phpinfo_logos._n
jmp 0x4041ea
mov byte [esp + 0x48], 1
mov dword [esp + 0x40], str..php
xor esi, esi
mov eax, dword [esi + 0x512584]
push ebp
dec eax
push eax
push dword [esi + 0x512568]
call sym.stub.exe_zend_register_auto_global
add esi, 4
add esp, 0xc
cmp esi, 0x18
jl 0x403fb6
push ebp
push 8
push str._REQUEST
call sym.stub.exe_zend_register_auto_global
lea eax, [esp + 0x4c]
push eax
call fcn.004ba78b
call fcn.004080c0
push ebp
push ebx
push 3
pop edi
push edi
push 5
push str.4.4.4
push 0xc
push str.PHP_VERSION
call sym.stub.exe_zend_register_stringl_constant
add esp, 0x2c
push ebp
push ebx
push edi
push dword [esp + 0x1c]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [esp + 0x20]
push 7
push str.PHP_OS
call sym.stub.exe_zend_register_stringl_constant
add esp, 0x1c
push ebp
push ebx
push edi
push dword [sym.stub.exe_sapi_module]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [sym.stub.exe_sapi_module]
push 9
push str.PHP_SAPI
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push 0xe
push str.._c:php4pear
push 0x15
push str.DEFAULT_INCLUDE_PATH
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push 0xc
push str.c:php4pear
push 0x11
push str.PEAR_INSTALL_DIR
call sym.stub.exe_zend_register_stringl_constant
add esp, 0x54
mov esi, str.c:php4
push ebp
push ebx
push edi
push 7
push esi
push 0x13
push str.PEAR_EXTENSION_DIR
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push 7
push esi
push 0x12
push str.PHP_EXTENSION_DIR
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push 7
push esi
push 0xb
push str.PHP_PREFIX
call sym.stub.exe_zend_register_stringl_constant
add esp, 0x54
push ebp
push ebx
push edi
push 7
push esi
push 0xb
push str.PHP_BINDIR
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push 7
push esi
push 0xb
push str.PHP_LIBDIR
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push 7
push esi
push 0xc
push str.PHP_DATADIR
call sym.stub.exe_zend_register_stringl_constant
add esp, 0x54
push ebp
push ebx
push edi
push 7
push esi
push 0xf
push str.PHP_SYSCONFDIR
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push 7
push esi
push 0x12
push str.PHP_LOCALSTATEDIR
call sym.stub.exe_zend_register_stringl_constant
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push str.SystemRoot
call esi
add esp, 0x3c
test eax, eax
je 0x404138
push str.SystemRoot
call esi
pop ecx
jmp 0x40413d
mov eax, 0x54dd08
push ebp
push ebx
push edi
push edi
push eax
push 0x15
push str.PHP_CONFIG_FILE_PATH
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push ebx
push 0x54dd08
push 0x19
push str.PHP_CONFIG_FILE_SCAN_DIR
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push edi
push 0x513dd0
push 0x11
push str.PHP_SHLIB_SUFFIX
call sym.stub.exe_zend_register_stringl_constant
add esp, 0x54
push ebp
push ebx
push edi
push 2
push 0x513c34
push 8
push str.PHP_EOL
call sym.stub.exe_zend_register_stringl_constant
push ebp
push ebx
push edi
push closesocket
push 0xc
push str.PHP_INT_MAX
call sym.stub.exe_zend_register_long_constant
push ebp
push ebx
push edi
push 4
push 0xd
push str.PHP_INT_SIZE
call sym.stub.exe_zend_register_long_constant
add esp, 0x4c
push ebp
call sym.stub.exe_php_output_register_constants
push ebp
call fcn.00409a58
push ebp
call fcn.00408dcb
or esi, 0xffffffff
add esp, 0xc
cmp eax, esi
jne 0x4041dc
push str.Unable_to_start_PHP_ticks_n
jmp 0x4041ea
call fcn.00402c8a
cmp eax, esi
jne 0x4041f4
push str.Unable_to_start_builtin_modules_n
call sym.stub.exe_php_printf
pop ecx
mov eax, esi
jmp 0x40423a
push dword [esp + 0x1e8]
lea eax, [esp + 0x1e8]
push eax
call sym.stub.exe_php_startup_extensions
push ebp
call fcn.004087f5
push ebp
call fcn.00404245
push ebp
call fcn.004042c4
call fcn.004c1c37
push ebp
call fcn.004ba578
push ebp
mov dword [0x54dd04], 1
call sym.stub.exe_sapi_deactivate
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret