Function at 0x436f60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51f4cd
push eax
mov dword fs:[0], esp
sub esp, 0x4c
cmp dword [ebp + 8], 0
push esi
je 0x436fac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 0x28], eax
mov edx, eax
mov dword [ebp - 0x14], edx
test eax, eax
jne 0x436fbd
push str.Fossilize_ERROR:_Failed_to_obtain_current_environment_for_process._n
push 2
call fcn.00503303
add esp, 4
push eax
call fcn.00401d30
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
cmp byte [edx], bl
je 0x43703f
cmp ebx, edi
je 0x436ffe
mov dword [ebx], edx
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x437014
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.0042e910
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437020
sub ecx, esi
inc edx
add edx, ecx
mov dword [ebp - 0x14], edx
cmp byte [edx], al
jne 0x436ff0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], eax
jbe 0x437219
lea ecx, [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + eax*8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea esi, [ecx + 1]
mov dword [ebp - 0x44], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437070
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004011f0
push 1
push 0x53322c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0041c1e0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx + eax*8 + 4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4370a5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0041c1e0
push 0x18
call fcn.004fa223
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x437112
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
jmp 0x437114
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp edi, dword [ebp - 0x20]
je 0x437126
mov dword [edi], ecx
add edi, 4
mov dword [ebp - 0x3c], edi
jmp 0x43713c
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00436010
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0x14], 0xf
jbe 0x43714d
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
cmp edi, ebx
je 0x437195
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + eax*8]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x437165
sub esi, edx
push esi
push ecx
push dword [edi]
call fcn.0050a190
add esp, 0xc
test eax, eax
jne 0x43718b
mov eax, dword [edi]
mov al, byte [esi + eax]
cmp al, 0x3d
je 0x4371a4
test al, al
je 0x4371a4
add edi, 4
cmp edi, ebx
jne 0x437157
mov eax, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x18]
je 0x4371ab
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x4371c7
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x4371c7
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.0042e910
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x4371ff
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4371f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43735f
push ecx
push edx
call fcn.004fa253
add esp, 8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp + 8]
jae 0x437213
mov edi, dword [ebp - 0x3c]
jmp 0x437050
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x10]
mov eax, ebx
push dword [ebp + 8]
sub eax, edi
sar eax, 2
push eax
push ebx
push edi
call fcn.00436870
mov edx, edi
add esp, 0x10
xor esi, esi
cmp edx, ebx
je 0x437258
lea esp, [esp]
mov ecx, dword [edx]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437245
sub ecx, edi
inc esi
add edx, 4
add esi, ecx
cmp edx, ebx
jne 0x437240
lea eax, [esi + 1]
push eax
call fcn.00505649
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x437287
push str.Fossilize_ERROR:_Failed_to_allocate_memory_for_new_environment_block._n
push 2
call fcn.00503303
add esp, 4
push eax
call fcn.00401d30
add esp, 8
jmp 0x4372d6
mov eax, dword [ebp - 0x10]
mov edi, esi
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4372ca
mov ecx, dword [eax]
mov esi, ecx
lea edx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4372a0
sub esi, edx
push esi
push ecx
push edi
call fcn.004fbbd0
mov eax, dword [ebp + 8]
add edi, esi
add eax, 4
add esp, 0xc
mov dword [ebp + 8], eax
mov byte [edi], 0
inc edi
cmp eax, ebx
jne 0x437293
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x437309
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4372ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43735f
push ecx
push edx
call fcn.004fa253
add esp, 8
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x43734c
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
push ebx
call fcn.00435f90
mov ecx, dword [ebp - 0x20]
add esp, 0xc
sub ecx, ebx
mov eax, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x437342
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43735f
push ecx
push ebx
call fcn.004fa253
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004ff45f
int3