Function at 0x432440
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50e82d
push eax
mov dword fs:[0], esp
sub esp, 0x4c
cmp dword [ebp + 8], 0
push esi
je 0x43248c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 0x28], eax
mov edx, eax
mov dword [ebp - 0x14], edx
test eax, eax
jne 0x43249d
push str.Fossilize_ERROR:_Failed_to_obtain_current_environment_for_process._n
push 2
call fcn.004f2743
add esp, 4
push eax
call fcn.00401d60
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 0x43251f
cmp ebx, edi
je 0x4324de
mov dword [ebx], edx
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x4324f4
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00429df0
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 0x432500
sub ecx, esi
inc edx
add edx, ecx
mov dword [ebp - 0x14], edx
cmp byte [edx], al
jne 0x4324d0
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 0x4326f9
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 0x432550
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.004011f0
push 1
push 0x520a7c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00418380
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 0x432585
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00418380
push 0x18
call fcn.004e9663
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4325f2
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 0x4325f4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp edi, dword [ebp - 0x20]
je 0x432606
mov dword [edi], ecx
add edi, 4
mov dword [ebp - 0x3c], edi
jmp 0x43261c
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004314f0
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 0x43262d
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
cmp edi, ebx
je 0x432675
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 0x432645
sub esi, edx
push esi
push ecx
push dword [edi]
call fcn.004f95d0
add esp, 0xc
test eax, eax
jne 0x43266b
mov eax, dword [edi]
mov al, byte [esi + eax]
cmp al, 0x3d
je 0x432684
test al, al
je 0x432684
add edi, 4
cmp edi, ebx
jne 0x432637
mov eax, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x18]
je 0x43268b
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x30], ebx
jmp 0x4326a7
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x4326a7
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00429df0
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 0x4326df
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4326d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43283f
push ecx
push edx
call fcn.004e9693
add esp, 8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp + 8]
jae 0x4326f3
mov edi, dword [ebp - 0x3c]
jmp 0x432530
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.00431d50
mov edx, edi
add esp, 0x10
xor esi, esi
cmp edx, ebx
je 0x432738
lea esp, [esp]
mov ecx, dword [edx]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432725
sub ecx, edi
inc esi
add edx, 4
add esi, ecx
cmp edx, ebx
jne 0x432720
lea eax, [esi + 1]
push eax
call fcn.004f4a89
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x432767
push str.Fossilize_ERROR:_Failed_to_allocate_memory_for_new_environment_block._n
push 2
call fcn.004f2743
add esp, 4
push eax
call fcn.00401d60
add esp, 8
jmp 0x4327b6
mov eax, dword [ebp - 0x10]
mov edi, esi
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4327aa
mov ecx, dword [eax]
mov esi, ecx
lea edx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x432780
sub esi, edx
push esi
push ecx
push edi
call fcn.004eb010
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 0x432773
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 0x4327e9
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4327df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43283f
push ecx
push edx
call fcn.004e9693
add esp, 8
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x43282c
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
push ebx
call fcn.00431470
mov ecx, dword [ebp - 0x20]
add esp, 0xc
sub ecx, ebx
mov eax, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x432822
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43283f
push ecx
push ebx
call fcn.004e9693
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.004ee89f
int3