Function at 0x4082db
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x20]
mov byte [ebp - 0x24], bl
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
call sym.stub.exe_ts_resource_ex
push 1
push 0x4086d9
push ebx
mov esi, 0x54dd48
push ebx
push esi
mov edi, eax
call sym.stub.exe_zend_hash_init
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x408324
or eax, eax
jmp 0x4086d4
mov eax, dword [0x5594b4]
cmp eax, ebx
je 0x408331
push esi
call eax
pop ecx
mov esi, sym.stub.exe_free_estring
push 1
push esi
push 4
push 0x54dd10
call sym.stub.exe_zend_llist_init
push 1
push sym.stub.exe__zval_dtor
push 0x10
push 0x54dd2c
call sym.stub.exe_zend_llist_init
push 1
push esi
lea eax, [ebp - 0x54]
push 4
push eax
call sym.stub.exe_zend_llist_init
mov eax, dword [edi]
mov ecx, dword [sym.stub.exe_core_globals_id]
push str.PHPRC
mov eax, dword [eax + ecx*4 - 4]
movzx ecx, byte [eax + 3]
mov esi, dword [eax + 0x44]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0x34
cmp eax, ebx
jne 0x408393
mov eax, 0x54dd08
mov ecx, dword [0x559488]
cmp ecx, ebx
je 0x4083a5
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
jmp 0x4083c4
push eax
call sub.MSVCRT.dll_strlen
add eax, 0x415
push eax
call sym.stub.exe__emalloc
pop ecx
mov dword [ebp - 8], eax
pop ecx
mov dword [ebp - 4], 1
mov byte [eax], bl
mov eax, dword [edi]
mov ecx, dword [sym.stub.exe_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov byte [eax + 3], bl
mov eax, dword [edi]
mov ecx, dword [sym.stub.exe_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x44], ebx
cmp dword [0x5594a0], ebx
jne 0x408464
mov eax, dword [0x559488]
cmp eax, ebx
je 0x408435
cmp byte [eax], bl
je 0x408435
lea ecx, [ebp - 0x78]
push edi
push ecx
push eax
call sym.stub.exe_virtual_stat
add esp, 0xc
test eax, eax
jne 0x408435
mov eax, dword [ebp - 0x72]
and ax, 0xf000
cmp ax, 0x4000
je 0x408435
push edi
push 0x5147d4
push dword [0x559488]
call sym.stub.exe_virtual_fopen
mov dword [ebp - 0x18], eax
mov eax, dword [0x559488]
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], ebx
jne 0x408464
push edi
push sym.stub.exe_php_ini_opened_path
push dword [ebp - 8]
push 0x5147d4
push str.phpini.bam
call sym.stub.exe_php_fopen_with_path
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x408464
mov eax, dword [sym.stub.exe_php_ini_opened_path]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], ebx
je 0x408472
push dword [ebp - 8]
call sym.stub.exe__efree
pop ecx
mov eax, dword [edi]
mov ecx, dword [sym.stub.exe_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov cl, byte [ebp - 0x10]
mov byte [eax + 3], cl
mov eax, dword [edi]
mov ecx, dword [sym.stub.exe_core_globals_id]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x44], esi
cmp dword [ebp - 0x18], ebx
je 0x40850b
push 0x54dd10
push 0x4086f6
lea eax, [ebp - 0x24]
push 1
push eax
mov byte [ebp - 0x24], 2
call sym.stub.exe_zend_parse_ini_file
push dword [ebp - 0x20]
call sub.MSVCRT.dll_strlen
push eax
mov dword [ebp - 0x34], eax
push dword [ebp - 0x20]
call sym.stub.exe_zend_strndup
mov dword [ebp - 0x38], eax
push 1
push ebx
lea eax, [ebp - 0x38]
push 0x10
push eax
push 0xe
push str.cfg_file_path
push 0x54dd48
mov byte [ebp - 0x30], 3
call sym.stub.exe_zend_hash_add_or_update
mov eax, dword [sym.stub.exe_php_ini_opened_path]
add esp, 0x38
cmp eax, ebx
je 0x4084f9
push eax
call sym.stub.exe__efree
pop ecx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call sym.stub.exe_zend_strndup
pop ecx
mov dword [sym.stub.exe_php_ini_opened_path], eax
pop ecx
cmp dword [0x5594a0], ebx
jne 0x4086d2
push 0x54dd08
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4086d2
push 0x408c78
lea eax, [ebp - 4]
push ebx
push eax
push 0x54dd08
call fcn.00408c95
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], eax
jle 0x4086d2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
push 0x2e
mov esi, eax
mov eax, dword [ebp - 4]
shl esi, 2
mov eax, dword [esi + eax]
add eax, 0xa
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x28], eax
je 0x408655
push 0x5147b0
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x408655
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax]
add eax, 0xa
push eax
push 0x5c
push 0x54dd08
push str._s_c_s
lea eax, [ebp - 0x1a0]
push 0x104
push eax
call sym.stub.exe_ap_php_snprintf
lea eax, [ebp - 0x9c]
push edi
push eax
lea eax, [ebp - 0x1a0]
push eax
call sym.stub.exe_virtual_stat
add esp, 0x24
test eax, eax
jne 0x408655
mov eax, dword [ebp - 0x96]
and ax, 0xf000
cmp ax, 0x8000
jne 0x408655
push edi
lea eax, [ebp - 0x1a0]
push 0x5147d4
push eax
call sym.stub.exe_virtual_fopen
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x408655
lea eax, [ebp - 0x1a0]
push 0x54dd10
mov dword [ebp - 0x20], eax
push 0x4086f6
lea eax, [ebp - 0x24]
push 1
push eax
mov byte [ebp - 0x24], 2
call sym.stub.exe_zend_parse_ini_file
lea eax, [ebp - 0x1a0]
push eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp - 0xc]
push eax
lea ecx, [ecx + eax + 2]
lea eax, [ebp - 0x1a0]
push eax
mov dword [ebp - 0xc], ecx
call sym.stub.exe__estrndup
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call sym.stub.exe_zend_llist_add_element
add esp, 0x24
mov eax, dword [ebp - 4]
push dword [esi + eax]
call dword [sym.imp.MSVCRT.dll_free]
inc dword [ebp - 8]
pop ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x40854f
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
cmp dword [ebp - 0xc], ebx
pop ecx
je 0x4086c8
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [sym.stub.exe_php_ini_scanned_files], eax
mov byte [eax], bl
mov esi, dword [ebp - 0x54]
pop ecx
cmp esi, ebx
je 0x4086c8
push dword [esi + 8]
push dword [sym.stub.exe_php_ini_scanned_files]
call sub.MSVCRT.dll_strcat
cmp dword [esi], ebx
pop ecx
pop ecx
mov eax, 0x5147a4
jne 0x4086b6
mov eax, 0x514744
push eax
push dword [sym.stub.exe_php_ini_scanned_files]
call sub.MSVCRT.dll_strcat
mov esi, dword [esi]
pop ecx
pop ecx
jmp 0x408694
lea eax, [ebp - 0x54]
push eax
call sym.stub.exe_zend_llist_destroy
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret