Function at 0x4163ba
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4e0
mov esi, esp
mov dword [esi + 0x4c8], ebp
lea eax, [esi + 0x4d0]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x417890
mov edi, dword fs:[0]
mov dword [eax], edi
mov dword fs:[0], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], edx
lock inc dword [0x4379ac]
jle 0x416cde
mov eax, dword [0x437a10]
mov edi, dword fs:[0x2c]
mov eax, dword [edi + eax*4]
cmp byte [eax + 0x1c], 0
jne 0x416d15
mov eax, dword [0x437a10]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
inc dword [eax + 0x18]
mov byte [eax + 0x1c], 1
mov edi, dword [0x43799c]
mov ecx, edi
call fcn.0041713a
cmp eax, 1
jne 0x416464
mov eax, edi
lock cmpxchg dword [0x43799c], edx
mov edi, eax
jne 0x416445
jmp 0x4165fc
lea eax, [esi + 0x3c]
xorps xmm0, xmm0
mov dword [esi + 4], 0
movaps xmmword [eax - 0xc], xmm0
and word [eax + 4], 0
mov ebx, dword [0x43799c]
mov ecx, ebx
call fcn.0041713a
cmp eax, 1
je 0x416569
cmp dword [esi + 4], 7
setb al
test bl, 2
sete cl
test cl, al
jne 0x41657d
cmp dword [esi + 0x3c], 0
jne 0x4164e6
and dword [esi + 0x4d8], 0
mov dword [esi + 0xc], ebx
call fcn.00411c18
test eax, eax
jne 0x4164c3
call fcn.00411cf0
lea edi, [esi + 0x18]
lea edx, [esi + 0x3c]
mov ecx, edi
push eax
call fcn.00411d04
pop eax
cmp dword [esi + 0x18], 0
jne 0x4165be
mov ecx, edi
call fcn.00411d2a
mov ebx, dword [esi + 0xc]
mov ecx, ebx
and dword [esi + 0x34], 0
mov eax, ebx
mov edi, ebx
mov byte [esi + 0x40], 0
and ecx, 1
and eax, 0xfffffff8
test bl, 2
lea edx, [esi + ecx + 0x32]
mov dword [esi + 0x30], eax
jne 0x41650e
lea eax, [esi + 0x30]
mov dword [esi + 0x38], eax
jmp 0x416518
add edx, 4
mov dword [esi + 0x38], 0
mov eax, edi
lock cmpxchg dword [0x43799c], edx
mov ebx, eax
jne 0x416480
mov ecx, edi
and ecx, 6
cmp ecx, 2
jne 0x416548
mov ecx, 0x43799c
mov dword [esi + 0x4d8], 2
call fcn.00414f0a
mov al, byte [esi + 0x40]
test al, al
jne 0x41659d
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x4d8], 2
je 0x4165af
lea ecx, [esi + 0x3c]
call fcn.0041261e
jmp 0x416548
mov eax, ebx
lock cmpxchg dword [0x43799c], edx
mov ebx, eax
jne 0x416480
jmp 0x4165f4
xor eax, eax
mov edx, eax
mov ecx, dword [esi + 4]
shr edx, cl
test edx, edx
jne 0x41658f
pause
inc eax
jmp 0x41657f
mov ebx, dword [0x43799c]
inc dword [esi + 4]
jmp 0x416480
mov ebx, dword [0x43799c]
mov dword [esi + 4], 0
jmp 0x416480
mov ecx, 0x42f694
call fcn.004260ef
jmp 0x416bd3
xor eax, eax
lea ecx, [esi + 0xc8]
mov edx, 0x42d8b0
inc eax
mov dword [ecx], str.reentrant_init
mov dword [ecx + 4], eax
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 4
and dword [ecx + 0xc], 0
mov dword [esi + 0x4d8], eax
call fcn.00425ea5
jmp 0x416bd3
lea ecx, [esi + 0x3c]
call fcn.00411d83
lea eax, [0x4379a4]
mov cl, byte [eax - 4]
cmp dword [eax], 0
mov ecx, 0x43799c
mov dword [esi + 0x9c], eax
mov dword [esi + 0x4d8], 3
mov dword [esi + 0xa0], ecx
jne 0x416651
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x78], eax
push eax
mov dword [esi + 0x74], ecx
call dword [ecx + 0x14]
add esp, 4
mov dword [esi + 0x2c], eax
mov edi, dword [ebp + 8]
cmp byte [ebp + 0x10], 0
je 0x4166d3
mov byte [esi + 0xb], 3
jmp 0x41670f
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x78], eax
push eax
mov dword [esi + 0x74], ecx
call dword [ecx + 0x14]
add esp, 4
lea ecx, [esi + 0xc8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov al, byte [ebp + 0xc]
mov byte [ecx + 0xc], al
mov al, byte [ebp + 0x10]
mov byte [ecx + 0xd], al
mov eax, dword [0x4379a8]
push ecx
push dword [0x4379a4]
call dword [eax + 0x14]
add esp, 8
or dword [esi + 0x4d8], 0xffffffff
lea ecx, [esi + 0x9c]
call fcn.00414e9c
mov eax, dword [0x437a10]
mov ecx, dword fs:[0x2c]
cmp byte [ebp + 0xc], 0
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x1c], 0
je 0x416d95
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
mov edx, dword [eax + 0x10]
call fcn.00414e03
mov eax, dword [0x437a10]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x18], 1
jbe 0x4166f1
mov byte [esi + 0xb], 1
jmp 0x41670f
mov bl, byte [0x437990]
dec bl
cmp bl, 3
jae 0x4167e0
mov byte [esi + 0xb], bl
mov dword [esi + 0x4d8], 3
mov dword [esi + 0xa4], edi
mov ecx, dword [esi + 0x2c]
lea eax, [esi + 0xb8]
mov edx, dword [edx + 0xc]
push ecx
push eax
mov dword [esi + 4], edx
call edx
pop eax
pop ecx
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc0]
mov edx, dword [esi + 0xb8]
mov edi, dword [esi + 0xbc]
xor edi, 0xb98b1b71
xor eax, 0x63eb502c
xor edx, 0x57a64178
xor ecx, 0xd6cb5d6d
or eax, edi
or ecx, edx
or ecx, eax
je 0x4167b6
lea eax, [esi + 0xa8]
push dword [esi + 0x2c]
push eax
call dword [esi + 4]
add esp, 8
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xa8]
mov edi, dword [esi + 0xac]
xor edi, 0x76a68c5f
xor eax, 0xb656d6ad
xor edx, 0x24795715
xor ecx, 0x6d839cb4
or eax, edi
or ecx, edx
or ecx, eax
je 0x416970
mov eax, str.Box_dyn_Any_aborting_due_to_panic_at
push 0xc
pop ecx
jmp 0x4167c3
push 4
pop ecx
mov edx, dword [esi + 0x2c]
mov eax, edx
mov eax, dword [eax]
mov ecx, dword [edx + ecx]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
call fcn.00411c18
test eax, eax
mov dword [esi + 0x58], eax
jne 0x416873
xor eax, eax
jmp 0x41687a
mov dword [esi + 0x90], edi
lea ecx, [esi + 0x18]
mov dword [esi + 0x94], edx
push 0xf
pop edx
call fcn.0040fd3d
lea edi, [esi + 0x30]
lea eax, [0x42e05c]
mov dword [edi], 0x42e04e
mov dword [edi + 4], eax
and word [edi + 8], 0
mov ecx, edi
call fcn.0040fcf1
cmp ax, 1
jne 0x4169d5
mov ecx, dword [esi + 0x20]
cmp ecx, dword [esi + 0x18]
jne 0x416866
mov dword [esi + 0xc], ecx
mov word [esi + 4], dx
lea ecx, [esi + 0xc8]
mov edx, edi
call fcn.00401713
mov edx, dword [esi + 0xc8]
mov eax, 0xffffffff
lea ecx, [esi + 0x18]
mov dword [esi + 0x4d8], 6
inc edx
cmove edx, eax
call fcn.00410fda
mov ecx, dword [esi + 0xc]
movzx edx, word [esi + 4]
lea edi, [esi + 0x30]
mov eax, dword [esi + 0x1c]
mov word [eax + ecx*2], dx
inc ecx
mov dword [esi + 0x20], ecx
jmp 0x41680e
mov ecx, eax
call fcn.00412bf4
test eax, eax
mov ecx, str._unnamed_thread__panicked_at__nM
cmovne ecx, eax
push 9
pop eax
cmovne eax, edx
lea edx, [esi + 0x80]
mov dword [esi + 0x4d8], 0xa
mov dword [edx], ecx
mov dword [edx + 4], eax
lea eax, [esi + 0xa4]
mov dword [esi + 0xc8], edx
xor ecx, ecx
mov dword [esi + 0xcc], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0xd0], eax
lea eax, [esi + 0xb]
mov dword [esi + 0xd4], eax
call fcn.00412c6c
lea ecx, [esi + 0x1c]
test eax, eax
mov dword [esi + 0xc], eax
mov edi, edx
mov dword [ecx - 4], eax
sete ah
test edx, edx
mov dword [ecx], edx
setne cl
and cl, ah
mov byte [esi + 4], cl
je 0x416980
lea eax, [edi + 8]
mov dword [esi + 0x7c], edi
mov dword [esi + 0xc], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
lea ecx, [edi + 0xc]
call fcn.0041474b
and dl, 1
mov dword [esi + 0x4d8], 9
lea ecx, [esi + 0xc8]
mov byte [esi + 0x14], dl
lea edx, [edi + 0x10]
push 0x414d3d
call fcn.0041715c
pop eax
movzx edx, byte [esi + 0x14]
mov ecx, dword [esi + 0xc]
call fcn.00413614
mov ecx, dword [esi + 0x7c]
mov byte [esi + 0x13], 0
mov dword [esi + 0x4d8], 8
call fcn.00412c6c
mov ecx, eax
xor ecx, 1
cmp eax, 1
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
je 0x416962
lea ecx, [esi + 0x34]
call fcn.00412c31
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ecx
jmp 0x4169a8
mov edx, dword [esi + 0x2c]
mov eax, edx
add eax, 4
push 8
pop ecx
jmp 0x4167be
lea edx, [esi + 0x30]
mov dword [esi + 0x14], edi
mov dword [esi + 0x4d8], 7
lea ecx, [esi + 0xc8]
and dword [edx], 0
mov byte [edx + 4], 0
push fcn.00411786
call fcn.0041715c
pop eax
lea ecx, [esi + 0x58]
call fcn.00411d83
cmp dword [esi + 0x14], 0
sete al
or al, byte [esi + 0xc]
or al, byte [esi + 4]
test al, 1
jne 0x4169c9
lea ecx, [esi + 0x1c]
call fcn.00412c5f
or dword [esi + 0x4d8], 0xffffffff
jmp 0x416693
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
lea eax, [edi + edi]
lea ebx, [edx + ecx]
cmp edi, 7
jbe 0x416a2e
cmp word [ebx], 0
je 0x416a40
cmp word [edx + ecx + 2], 0
je 0x416a40
cmp word [edx + ecx + 4], 0
je 0x416a40
cmp word [edx + ecx + 6], 0
je 0x416a40
cmp word [edx + ecx + 8], 0
je 0x416a40
cmp word [edx + ecx + 0xa], 0
je 0x416a40
cmp word [edx + ecx + 0xc], 0
je 0x416a40
cmp word [edx + ecx + 0xe], 0
je 0x416a40
add edi, 0xfffffff8
add ecx, 0x10
jmp 0x4169e0
sub eax, ecx
test eax, eax
je 0x416aa6
add eax, 0xfffffffe
cmp word [ebx], 0
lea ebx, [ebx + 2]
jne 0x416a30
mov ecx, dword [esi + 0x18]
call fcn.00410fcd
mov dword [esi + 0x4d8], 3
mov edx, 0x42f2c8
mov al, 2
movzx ecx, al
mov dword [esi + 0x4d8], 3
call fcn.004102d7
mov cl, 3
mov bl, 2
xor eax, eax
lock cmpxchg byte [0x437990], cl
mov edx, dword [esi + 0x94]
mov edi, dword [esi + 0x90]
je 0x416702
mov bl, 3
cmp al, 3
ja 0x416702
shl al, 3
mov ebx, 0x2010003
mov ecx, eax
shr ebx, cl
jmp 0x416702
lea ecx, [esi + 0x18]
xor edx, edx
mov dword [esi + 0x4d8], 6
call fcn.00412c3b
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x70], ecx
neg ecx
jno 0x416acc
mov edx, dword [esi + 0x20]
jmp 0x416a59
mov ecx, eax
movzx eax, al
mov edi, 0x200
mov dword [esi + 0xc], 0
and ecx, 0xffffff00
or eax, ecx
mov dword [esi + 4], eax
lea eax, [esi + 0x5c]
and dword [eax], 0
mov dword [eax + 4], 2
and dword [eax + 8], 0
push 2
pop eax
mov dword [esi + 0x54], eax
cmp edi, 0x201
jae 0x416b1a
lea eax, [esi + 0xc8]
mov ebx, edi
mov dword [esi + 0x14], 0x200
mov edi, eax
jmp 0x416b45
sub edi, dword [esi + 0xc]
lea ecx, [esi + 0x5c]
mov dword [esi + 0x4d8], 5
mov edx, edi
call fcn.00410fda
mov eax, dword [esi + 0x60]
mov ebx, dword [esi + 0x5c]
mov edi, eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x54], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], ebx
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
mov dword [esi + 0x98], edi
push edi
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x416b6e
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x416bd5
cmp edi, ebx
jne 0x416b8f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x416bb6
lea edi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs edi, eax
jmp 0x416aff
ja 0x416aff
cmp edi, dword [esi + 0x14]
mov dword [esi + 0x4d8], 5
jbe 0x416c1c
mov edx, dword [esi + 0x14]
mov ecx, edi
push 0x42f2d4
call fcn.00425edf
pop eax
jmp 0x416bd3
mov dword [esi + 0x4d8], 5
push 0x28
pop edx
mov ecx, str.internal_error:_entered_unreachable_codew
push 0x42f2e4
call fcn.00425ee8
pop eax
ud2
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.004010d6
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov dword [edi - 4], 0x80000000
call fcn.00410fcd
mov dword [esi + 0x4d8], 4
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x80], 0x80000000
mov dword [esi + 0x4d8], 4
call fcn.004102d7
jmp 0x416c6c
mov edx, dword [esi + 0x98]
lea ecx, [esi + 0x30]
push edi
call fcn.004107ec
pop eax
movsd xmm0, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x38]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
call fcn.00410fcd
xor eax, eax
cmp eax, dword [esi + 0x18]
jo 0x416bfb
movsd xmm0, qword [esi + 0x18]
movsd xmm1, qword [esi + 0x20]
movsd qword [esi + 0x88], xmm1
movsd qword [esi + 0x80], xmm0
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 4]
call fcn.00410fcd
mov edi, dword [esi + 0x80]
mov eax, edi
neg eax
jo 0x416a6b
lea ecx, [esi + 0x80]
mov edx, str.0RUST_BACKTRACEfailed_to_write_the_buffered_data
push 1
call fcn.00414e1d
pop ecx
test al, al
je 0x416cb0
mov edx, dword [esi + 0x84]
mov ecx, edi
call fcn.00405d48
jmp 0x416a6b
lea ecx, [esi + 0x80]
mov edx, 0x42e2ee
push 4
call fcn.00414e1d
pop ecx
lea ecx, [esi + 0x80]
mov ebx, eax
mov edx, dword [ecx + 4]
mov ecx, edi
call fcn.00405d48
mov ecx, ebx
inc cl
jmp 0x416a6f
lea eax, [esi + 0x80]
lea ecx, [ebp + 8]
lea edx, [esi + 0x30]
and dword [eax], 0
mov dword [edx], ecx
lea ecx, [esi + 0x68]
mov dword [edx + 4], 0x4110df
mov byte [eax + 4], 0
mov dword [edx + 8], ecx
lea ecx, [esi + 0xc8]
mov dword [edx + 0xc], 0x406ee4
mov dword [ecx], 0x42e974
jmp 0x416d61
push ecx
call dword [edx + 0x18]
add esp, 4
xor ecx, ecx
lea edi, [esi + 0x80]
inc ecx
test eax, eax
cmovne ecx, eax
cmove edx, eax
lea eax, [esi + 0x5c]
and dword [eax], 0
mov dword [edi], ecx
mov dword [edi + 4], edx
lea ecx, [ebp + 8]
lea edx, [esi + 0x30]
mov byte [eax + 4], 0
mov dword [edx], ecx
lea ecx, [esi + 0xc8]
mov dword [edx + 4], 0x4110df
mov dword [edx + 8], edi
mov dword [edx + 0xc], fcn.00406ed0
mov dword [ecx], str.panicked_at_:_nfullU
mov dword [ecx + 4], 3
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 2
lea edi, [esi + 0x18]
push ecx
push eax
push edi
call fcn.00411786
add esp, 0xc
mov ecx, dword [edi]
mov edx, dword [edi + 4]
call fcn.00411204
push 7
pop ecx
int 0x29
ud2
lea eax, [esi + 0x18]
lea ecx, [esi + 0xc8]
lea edi, [esi + 0x30]
and dword [eax], 0
mov dword [ecx], str.thread_caused_non_unwinding_panic._aborting._n
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], 4
and dword [ecx + 0xc], 0
mov byte [eax + 4], 0
push ecx
push eax
push edi
call fcn.00411786
add esp, 0xc
mov ecx, dword [edi]
mov edx, dword [edi + 4]
call fcn.00411204
push 7
pop ecx
int 0x29
ud2