Function at 0x431270
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50b28d
push eax
mov dword fs:[0], esp
sub esp, 0x4c
cmp dword [ebp + 8], 0
je 0x4312b8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
jne 0x4312c8
push str.Fossilize_ERROR:_Failed_to_obtain_current_environment_for_process._n
push 2
call fcn.004ee433
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 0x43134f
nop
cmp ebx, edi
je 0x43130e
mov dword [ebx], edx
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x431324
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00428bc0
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 0x431330
sub ecx, esi
inc edx
add edx, ecx
mov dword [ebp - 0x14], edx
cmp byte [edx], al
jne 0x431300
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 0x431524
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 0x431384
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004019c0
push 1
push 0x51ca9c
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 0x4313c0
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 0x43141a
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 0x43141c
xor edx, edx
mov dword [ebp - 0x24], edx
cmp edi, dword [ebp - 0x20]
je 0x43142e
mov dword [edi], edx
add edi, 4
mov dword [ebp - 0x3c], edi
jmp 0x431444
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004302a0
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 0x431455
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
cmp edi, ebx
je 0x4314a0
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 0x431470
sub esi, edx
push esi
push ecx
push dword [edi]
call fcn.004f52c0
add esp, 0xc
test eax, eax
jne 0x431496
mov eax, dword [edi]
mov al, byte [esi + eax]
cmp al, 0x3d
je 0x4314af
test al, al
je 0x4314af
add edi, 4
cmp edi, ebx
jne 0x431460
mov eax, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x18]
je 0x4314b6
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x4314d2
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x4314d2
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00428bc0
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 0x43150a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x431500
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316cd
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 0x43151e
mov edi, dword [ebp - 0x3c]
jmp 0x431360
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.00430b30
mov edx, edi
add esp, 0x10
xor esi, esi
cmp edx, ebx
je 0x431563
mov ecx, dword [edx]
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431550
sub ecx, edi
inc esi
add edx, 4
add esi, ecx
cmp edx, ebx
jne 0x431544
lea eax, [esi + 1]
push eax
call fcn.004f0779
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x431595
push str.Fossilize_ERROR:_Failed_to_allocate_memory_for_new_environment_block._n
push 2
call fcn.004ee433
add esp, 4
push eax
call fcn.00401df0
add esp, 8
mov dword [ebp + 8], esi
jmp 0x4315de
mov eax, dword [ebp - 0x10]
mov edi, esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4315d2
mov ecx, dword [eax]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4315a8
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 0x4315a1
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 0x431615
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x43160b
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316cd
push ecx
push edx
call fcn.004e5ccb
add esp, 8
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4316ba
mov eax, dword [ebp - 0x3c]
mov edi, ebx
cmp edi, eax
je 0x43168e
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x431684
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x431665
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x43165b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316cd
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 0x431630
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4316b0
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4316cd
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