Function at 0x415050
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x480
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41ddd0
mov ebx, ecx
lea eax, [ebp - 0x18]
mov esi, 1
mov edi, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lock xadd dword [0x4389a4], esi
call fcn.00415ad0
test eax, eax
jne 0x4150bf
lea eax, [ebp - 0x48c]
mov ecx, 0x42f407
mov edx, 0x46
push 0x42f46c
push 0x42f268
push eax
call fcn.0042ba50
add esp, 0xc
ud2
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
inc ecx
test esi, esi
mov dword [eax], ecx
js 0x415137
cmp ecx, 3
jae 0x415137
mov dword [ebp - 0x70], ecx
push 0x4389a0
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov dword [ebp - 0x7c], 0x4389a0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x74], ebx
push ebx
mov dword [ebp - 0x78], edi
call dword [edi + 0x10]
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], edx
call fcn.00415ad0
mov edi, dword [ebp - 0x2c]
test eax, eax
jne 0x415254
lea eax, [ebp - 0x48c]
mov ecx, 0x42f407
mov edx, 0x46
push 0x42f46c
push 0x42f268
push eax
call fcn.0042ba50
add esp, 0xc
jmp 0x4157f7
cmp ecx, 2
jbe 0x41519e
lea ecx, [ebp - 0x48c]
lea edx, [ebp - 0x48c]
mov dword [ebp - str.thread_panicked_while_processing_panic._aborting._n], 0x42ffe4
mov dword [ebp - 0x488], 1
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x47c], str._rustc_50171c310cd15e1b2d3723766ce64e2e4d6696fclibrarycore_src_strpattern.rs
mov dword [ebp - 0x478], 0
call fcn.00415bc0
cmp al, 3
jne 0x415250
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], 1
push eax
mov dword [ebp - 0x20], edx
call dword [ecx]
add esp, 4
jmp 0x41521d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], str._rustc_50171c310cd15e1b2d3723766ce64e2e4d6696fclibrarycore_src_strpattern.rs
mov dword [ebp - 0x60], 0x42f22c
lea ecx, [ebp - 0x48c]
mov dword [ebp - str._rustc_50171c310cd15e1b2d3723766ce64e2e4d6696fclibrarycore_src_strpattern.rs], 0x430020
mov dword [ebp - 0x488], 2
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0x48c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x404060
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x478], 1
call fcn.00415bc0
cmp al, 3
jne 0x415250
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x20], edx
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x415242
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x415234
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
ud2
cmp dword [eax], 1
mov dl, 1
jbe 0x415292
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [edi + 0xc]
push dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
call eax
add esp, 4
xor eax, 0xecc7bcf4
xor edx, 0x7ef2a91e
or edx, eax
jne 0x415335
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x41536f
mov eax, dword [0x438990]
mov ecx, dword [ebp + 0xc]
cmp eax, 2
je 0x41535e
cmp eax, 1
je 0x415357
test eax, eax
jne 0x41525e
lea ecx, [ebp - 0x48c]
call fcn.0041ad90
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x48c], 1
jne 0x4153ac
cmp byte [ebp - 0x488], 3
jne 0x41532b
mov ecx, dword [ebp - 0x484]
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 0xb
push eax
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
cmp dword [ecx + 4], 0
je 0x41531a
mov eax, dword [eax]
cmp dword [ecx + 8], 9
jb 0x415306
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x484]
push eax
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov bl, 5
jmp 0x4153c2
push dword [ebp - 0x40]
call dword [ebp - 0x20]
add esp, 4
xor eax, 0x811d4bf1
xor edx, 0x41ae8c70
or edx, eax
jne 0x415365
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
jmp 0x41536f
mov dl, 4
jmp 0x41525e
xor edx, edx
jmp 0x41525e
mov ecx, 0x42fe9c
mov eax, 0xc
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], eax
call fcn.004148a0
test eax, eax
jne 0x41538f
mov dword [ebp - 0x48], 0
xor ecx, ecx
jmp 0x4153f0
mov ecx, eax
call fcn.004149b0
mov dword [ebp - 0x48], eax
mov edx, eax
mov eax, dword [eax + 0x10]
add edx, 0x10
test eax, eax
cmove edx, eax
jne 0x4153ea
xor ecx, ecx
jmp 0x4153f0
mov eax, dword [ebp - 0x488]
mov bl, 5
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x4156e4
mov ecx, dword [ebp + 0xc]
cmp bl, 5
movzx eax, bl
mov ebx, 1
mov edx, 4
cmovne ebx, esi
cmovne edx, eax
xchg dword [0x438990], ebx
mov dword [ebp - 0x10], 2
jmp 0x41525e
mov eax, dword [edx + 4]
mov ecx, dword [edx]
dec eax
test ecx, ecx
mov edx, 0x42fea8
mov dword [ebp - 0x64], 0x42fecc
mov dword [ebp - 0x60], 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x10], 3
cmovne edx, ecx
mov ecx, 9
cmovne ecx, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x64]
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x488], 0x4160e0
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x48c]
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x480], 0x4160e0
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x478], 0x416100
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 3
call fcn.00415bc0
cmp al, 3
jne 0x4154d1
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], 7
push eax
mov dword [ebp - 0x20], edx
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x4154c3
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x4154b5
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
mov ebx, dword [ebp - 0x24]
xor eax, eax
mov ecx, ebx
add cl, 0xfd
movzx edx, cl
inc edx
cmp cl, 2
cmovb eax, edx
test eax, eax
je 0x415572
cmp eax, 1
je 0x41563e
xor eax, eax
xchg byte [0x438040], al
test al, al
je 0x41563e
lea ecx, [ebp - 0x48c]
lea edx, [ebp - 0x48c]
mov dword [ebp - str.note:_run_with__RUST_BACKTRACE1__environment_variable_to_display_a_backtrace_n], 0x42ff3c
mov dword [ebp - 0x488], 1
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x47c], str._rustc_50171c310cd15e1b2d3723766ce64e2e4d6696fclibrarycore_src_strpattern.rs
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x10], 3
call fcn.00415bc0
cmp al, 3
jne 0x41563e
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], 4
push eax
mov dword [ebp - 0x20], edx
call dword [ecx]
add esp, 4
jmp 0x415609
push 0x43898c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x2d]
lea ecx, [ebp - 0x48c]
lea edx, [ebp - 0x48c]
mov dword [ebp - str._rustc_50171c310cd15e1b2d3723766ce64e2e4d6696fclibrarycore_src_strpattern.rs], 0x42f5f8
mov dword [ebp - 0x488], 1
mov dword [ebp - 0x8c], 0x43898c
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x10], 6
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], 0x416170
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x478], 1
call fcn.00415bc0
mov esi, edx
mov ebx, eax
push 0x43898c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp bl, 3
jne 0x41563e
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], 5
push eax
mov dword [ebp - 0x20], esi
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov esi, eax
cmp dword [ecx + 4], 0
je 0x415630
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x415622
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x415652
lock dec dword [eax]
jne 0x415652
mov ecx, dword [ebp - 0x48]
call fcn.00414f50
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
test eax, eax
je 0x41566c
lock dec dword [eax]
jne 0x41566c
mov ecx, dword [ebp - 0x4c]
call fcn.00415e60
push 0x4389a0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp dword [ebp - 0x70], 1
mov dword [ebp - 0x10], 0xffffffff
jbe 0x4156d9
lea ecx, [ebp - 0x48c]
lea edx, [ebp - 0x48c]
mov dword [ebp - str.thread_panicked_while_panicking._aborting._n], 0x43005c
mov dword [ebp - 0x488], 1
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x47c], str._rustc_50171c310cd15e1b2d3723766ce64e2e4d6696fclibrarycore_src_strpattern.rs
mov dword [ebp - 0x478], 0
call fcn.00415bc0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], eax
call fcn.00415d90
ud2
mov ecx, edi
mov edx, esi
call fcn.00415d70
ud2
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x68], eax
push 0x400
push 0
lea eax, [ebp - 0x48c]
push eax
call fcn.00420190
add esp, 0xc
mov eax, dword [0x42f2f4]
mov ebx, 0x200
xor esi, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], 0
cmp ebx, 0x201
jae 0x415742
jmp 0x415780
cmp edi, ebx
mov ebx, edi
jb 0x4157da
cmp ebx, 0x201
jb 0x415780
mov ecx, dword [ebp - 0x38]
mov eax, ebx
sub eax, esi
sub ecx, esi
cmp ecx, eax
jae 0x415770
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], 0xa
lea ecx, [ebp - 0x3c]
mov edx, esi
push eax
call fcn.0042c660
add esp, 4
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov edi, dword [ebp - 0x44]
mov esi, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
jmp 0x41578d
lea edi, [ebp - 0x48c]
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x28], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x4157b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4157f9
cmp edi, ebx
jne 0x415730
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415730
add ebx, ebx
cmp ebx, 0x201
jae 0x415742
jmp 0x415780
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0xa
cmp edi, edx
jbe 0x415808
mov ecx, edi
push 0x4304b8
call fcn.0042b8c0
add esp, 4
ud2
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov dword [ebp - 0x28], eax
jmp 0x415828
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x64]
push edi
call fcn.00419270
add esp, 4
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x415850
cmp dword [ebp - 0x44], 0
je 0x415850
and eax, 0x7fffffff
je 0x415850
push dword [ebp - 0x44]
push 0
push dword [0x4389ac]
mov esi, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, esi
test bl, bl
je 0x4158af
cmp cl, 3
mov dword [ebp - 0x24], 0
jne 0x4158b2
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 9
push eax
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
cmp dword [ecx + 4], 0
je 0x41589d
mov eax, dword [ebp - 0x28]
cmp dword [ecx + 8], 9
mov eax, dword [eax]
jb 0x41588f
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
push dword [ebp - 0x28]
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
jmp 0x4158b2
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c]
test dword [ebp - 0x68], 0x7fffffff
mov bl, 5
je 0x4158d6
push dword [ebp - 0x20]
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x24], 0
je 0x4153c2
mov eax, dword [ebp - 0x6c]
cmp eax, 4
je 0x4158fe
cmp eax, 1
jne 0x415912
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x30
jne 0x415912
mov bl, 4
mov esi, 1
jmp 0x415919
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0x6c6c7566
jne 0x415912
mov bl, 1
mov esi, 3
jmp 0x415919
mov esi, 2
xor ebx, ebx
cmp dword [ebp - 0x28], 0
je 0x41592f
push dword [ebp - 0x24]
push 0
push dword [0x4389ac]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c]
jmp 0x4153c2