Function at 0x4312a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50bebd
push eax
mov dword fs:[0], esp
sub esp, 0x4c
cmp dword [ebp + 8], 0
je 0x4312e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
jne 0x4312f8
push str.Fossilize_ERROR:_Failed_to_obtain_current_environment_for_process._n
push 2
call fcn.004ee3fb
add esp, 4
push eax
call fcn.00401df0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x28], edx
push edi
xor edi, edi
mov dword [ebp - 0x24], 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 0x43137f
nop
cmp ebx, edi
je 0x43133e
mov dword [ebx], edx
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x431354
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00428be0
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 0x431360
sub ecx, esi
inc edx
add edx, ecx
mov dword [ebp - 0x14], edx
cmp byte [edx], al
jne 0x431330
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 0x431554
lea ecx, [ecx]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov edx, dword [edx + eax*8]
mov ecx, edx
mov byte [ebp - 0x58], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4313b4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004019c0
push 1
push 0x51da9c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004170b0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx + eax*8 + 4]
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4313f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004170b0
push 0x18
call fcn.004e5c9b
mov edx, eax
add esp, 4
test edx, edx
je 0x43144a
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x54]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x50]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x14], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
jmp 0x43144c
xor edx, edx
mov dword [ebp - 0x24], edx
cmp edi, dword [ebp - 0x20]
je 0x43145e
mov dword [edi], edx
add edi, 4
mov dword [ebp - 0x3c], edi
jmp 0x431474
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004302c0
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], 0x10
jb 0x431485
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
cmp edi, ebx
je 0x4314d0
nop
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + eax*8]
mov esi, ecx
lea edx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4314a0
sub esi, edx
push esi
push ecx
push dword [edi]
call fcn.004f52e0
add esp, 0xc
test eax, eax
jne 0x4314c6
mov eax, dword [edi]
mov al, byte [esi + eax]
cmp al, 0x3d
je 0x4314df
test al, al
je 0x4314df
add edi, 4
cmp edi, ebx
jne 0x431490
mov eax, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x18]
je 0x4314e6
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x431502
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x431502
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00428be0
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 edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x43153a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x431530
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316fd
push edx
push ecx
call fcn.004e5ccb
add esp, 8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp + 8]
jae 0x43154e
mov edi, dword [ebp - 0x3c]
jmp 0x431390
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], 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.00430b50
mov edx, edi
add esp, 0x10
xor esi, esi
cmp edx, ebx
je 0x431593
mov ecx, dword [edx]
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431580
sub ecx, edi
inc esi
add edx, 4
add esi, ecx
cmp edx, ebx
jne 0x431574
lea eax, [esi + 1]
push eax
call fcn.004f077a
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x4315c5
push str.Fossilize_ERROR:_Failed_to_allocate_memory_for_new_environment_block._n
push 2
call fcn.004ee3fb
add esp, 4
push eax
call fcn.00401df0
add esp, 8
mov dword [ebp + 8], esi
jmp 0x43160e
mov eax, dword [ebp - 0x10]
mov edi, esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x431602
mov ecx, dword [eax]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4315d8
sub esi, edx
push esi
push ecx
push edi
call fcn.004e74d0
mov eax, dword [ebp - 0x1c]
add edi, esi
add eax, 4
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov byte [edi], 0
inc edi
cmp eax, ebx
jne 0x4315d1
mov esi, dword [ebp + 8]
push dword [ebp - 0x28]
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x431645
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x43163b
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316fd
push ecx
push edx
call fcn.004e5ccb
add esp, 8
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4316ea
mov eax, dword [ebp - 0x3c]
mov edi, ebx
cmp edi, eax
je 0x4316be
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x4316b4
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x431695
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x43168b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316fd
mov eax, edx
push ecx
push eax
call fcn.004e5ccb
add esp, 8
push 0x18
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.004e5ccb
mov eax, dword [ebp - 0x3c]
add esp, 8
add edi, 4
cmp edi, eax
jne 0x431660
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4316e0
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316fd
push ecx
push ebx
call fcn.004e5ccb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004ea5cf
int3