Function at 0x4ef450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov dword [ecx], 0
test ebx, ebx
je 0x4efcb6
call fcn.004ec140
cmp byte [ebx], 0x43
je 0x4ef4b0
mov ecx, 6
mov esi, ebx
mov edi, 0x5410c0
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x4ef4c0
mov eax, dword [0x538748]
mov edi, dword [ebp - 0x4c]
mov dword [edi], eax
lock add dword [eax], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
cmp byte [ebx + 1], 0
je 0x4ef48e
jmp 0x4ef477
cmp byte [ebx], 0
jne 0x4ef510
mov dword [esp], str.LC_ALL
call sub.msvcrt.dll_getenv
mov ebx, eax
test eax, eax
je 0x4ef548
cmp byte [eax], 0
je 0x4ef548
cmp byte [eax], 0x43
je 0x4ef7e0
mov ecx, 6
mov esi, ebx
mov edi, 0x5410c0
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x4efc60
mov eax, dword [0x538748]
mov esi, dword [ebp - 0x4c]
mov dword [esi], eax
lock add dword [eax], 1
jmp 0x4ef49c
mov dword [esp], 0x14
call fcn.00513bb0
mov dword [esp + 4], 1
mov dword [esp], ebx
mov ecx, eax
mov esi, eax
call fcn.004ed500
mov eax, dword [ebp - 0x4c]
sub esp, 8
mov dword [eax], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp], str.LANG
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 0
call sub.msvcrt.dll_getenv
mov ebx, eax
test eax, eax
je 0x4ef5c8
cmp byte [eax], 0
je 0x4ef5c8
cmp byte [eax], 0x43
jne 0x4ef580
cmp byte [eax + 1], 0
je 0x4ef5c8
lea esi, [esi]
nop
mov ecx, 6
mov esi, ebx
mov edi, 0x5410c0
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x4ef5c8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x44]
mov esi, ecx
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004f2730
jmp 0x4ef5f2
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], 1
mov ecx, eax
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], 0x5410d2
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004f2730
sub esp, 0x10
mov ecx, esi
xor ebx, ebx
mov dword [esp], 0x5410d2
call fcn.004887f0
sub esp, 4
test eax, eax
jne 0x4ef670
mov dword [ebp - 0x50], esi
jmp 0x4ef62c
cmp byte [eax + 1], 0
jne 0x4ef64a
nop
add ebx, 1
cmp ebx, 6
je 0x4efb90
mov eax, dword [0x545a4c]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4ef620
cmp byte [eax], 0
je 0x4ef620
cmp byte [eax], 0x43
je 0x4ef618
mov ecx, 6
mov esi, eax
mov edi, 0x5410c0
repe cmpsb byte [esi], byte es:[edi]
seta dl
sbb dl, 0
test dl, dl
je 0x4ef620
mov dword [ebp - 0x58], eax
jmp 0x4ef6b3
mov edi, esi
jmp 0x4ef684
add ebx, 1
cmp ebx, 6
je 0x4efbc8
mov eax, dword [0x545a4c]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov esi, eax
test eax, eax
je 0x4ef678
cmp byte [eax], 0
je 0x4ef678
mov dword [esp], eax
mov ecx, edi
call fcn.004887f0
sub esp, 4
test eax, eax
je 0x4ef678
mov dword [ebp - 0x58], esi
mov dword [esp], pe_nt_image_headers32
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
call fcn.004f4c70
sub esp, 4
test ebx, ebx
je 0x4ef820
mov edi, dword [0x545a4c]
lea eax, [edi + ebx*4]
mov dword [ebp - 0x54], eax
jmp 0x4ef75a
mov byte [eax + esi], 0x3d
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.004f4db0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esp, 8
cmp eax, edx
mov edx, 0xf
lea ecx, [esi + 1]
cmovne edx, dword [ebp - 0x28]
mov dword [ebp - 0x50], ecx
cmp ecx, edx
ja 0x4ef7f0
mov byte [eax + esi], 0x3b
mov eax, dword [ebp - 0x50]
add edi, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov byte [eax + esi + 1], 0
cmp dword [ebp - 0x54], edi
je 0x4ef820
mov esi, dword [edi]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x4efcce
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], esi
call fcn.004f4db0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esp, 8
cmp eax, edx
mov edx, 0xf
lea ecx, [esi + 1]
cmovne edx, dword [ebp - 0x28]
mov dword [ebp - 0x50], ecx
cmp ecx, edx
jbe 0x4ef6f0
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004f4f90
mov eax, dword [ebp - 0x30]
sub esp, 0x10
jmp 0x4ef6f0
cmp byte [eax + 1], 0
je 0x4ef500
jmp 0x4ef4e5
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004f4f90
mov eax, dword [ebp - 0x30]
sub esp, 0x10
jmp 0x4ef73c
lea eax, [ebx*4]
mov dword [ebp - 0x50], eax
mov eax, dword [0x545a4c]
mov esi, dword [eax + ebx*4]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x4efcf2
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], esi
call fcn.004f4db0
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esp, 8
cmp edx, eax
mov eax, 0xf
lea edi, [esi + 1]
cmovne eax, dword [ebp - 0x28]
cmp edi, eax
ja 0x4efc00
mov byte [edx + esi], 0x3d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov byte [eax + esi + 1], 0
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x4efce6
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.004f4db0
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esp, 8
cmp edx, eax
mov eax, 0xf
lea edi, [esi + 1]
cmovne eax, dword [ebp - 0x28]
cmp edi, eax
ja 0x4efbd0
mov byte [edx + esi], 0x3b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov byte [eax + esi + 1], 0
cmp ebx, 5
je 0x4efae0
mov edi, dword [ebp - 0x50]
mov eax, dword [0x545a4c]
lea eax, [eax + edi + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [0x545a4c]
add eax, 0x18
mov dword [ebp - 0x58], eax
jmp 0x4ef95e
cmp byte [ebx], 0x43
jne 0x4efa30
cmp byte [ebx + 1], 0
jne 0x4efa30
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x54]
cmp eax, 2
jbe 0x4efcda
mov dword [esp + 4], 3
lea ecx, [ebp - 0x30]
mov dword [esp], 0x5410e9
call fcn.004f4db0
sub esp, 8
add dword [ebp - 0x50], 4
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x58], eax
je 0x4efae0
mov edi, dword [ebp - 0x50]
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov esi, dword [edi]
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x4efcc2
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], esi
call fcn.004f4db0
mov eax, dword [ebp - 0x2c]
sub esp, 8
mov dword [ebp - 0x54], eax
test ebx, ebx
je 0x4ef9ac
cmp byte [ebx], 0
jne 0x4ef910
mov eax, dword [ebp - 0x54]
lea edi, [ebp - 0x28]
mov edx, 0xf
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x30]
cmp eax, edi
cmovne edx, dword [ebp - 0x28]
cmp ebx, edx
ja 0x4efb58
mov edi, dword [ebp - 0x54]
lea ecx, [ebp - 0x30]
mov byte [eax + edi], 0x3d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
mov byte [eax + edi + 1], 0
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.004f4db0
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
lea edi, [ebp - 0x28]
sub esp, 8
mov edx, 0xf
cmp eax, edi
cmovne edx, dword [ebp - 0x28]
lea esi, [ebx + 1]
cmp esi, edx
ja 0x4efab0
mov byte [eax + ebx], 0x3b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], esi
mov byte [eax + ebx + 1], 0
jmp 0x4ef94e
mov ecx, 6
mov esi, ebx
mov edi, 0x5410c0
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x4ef923
mov eax, dword [ebp - 0x54]
lea edi, [ebp - 0x28]
mov edx, 0xf
lea esi, [eax + 1]
mov eax, dword [ebp - 0x30]
cmp eax, edi
cmovne edx, dword [ebp - 0x28]
cmp esi, edx
ja 0x4efc85
mov edi, dword [ebp - 0x54]
mov byte [eax + edi], 0x3d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], esi
mov byte [eax + edi + 1], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x2c]
cmp eax, edx
ja 0x4efcfe
mov dword [esp + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esp], ebx
call fcn.004f4db0
jmp 0x4ef9f2
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.004f4f90
mov eax, dword [ebp - 0x30]
sub esp, 0x10
jmp 0x4efa14
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 1
lea ecx, [ebp - 0x30]
sub eax, 1
mov dword [esp], eax
call fcn.004f4d20
sub esp, 8
mov esi, dword [ebp - 0x30]
mov dword [esp], 0x14
call fcn.00513bb0
mov dword [esp + 4], 1
mov ecx, eax
mov ebx, eax
mov dword [esp], esi
call fcn.004ed500
mov eax, dword [ebp - 0x4c]
lea esi, [ebp - 0x28]
sub esp, 8
mov dword [eax], ebx
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x4efb39
mov dword [esp], eax
call fcn.00513b60
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x40]
cmp eax, esi
je 0x4ef49c
mov dword [esp], eax
call fcn.00513b60
jmp 0x4ef49c
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004f4f90
mov eax, dword [ebp - 0x30]
sub esp, 0x10
jmp 0x4ef9cb
mov eax, dword [ebp - 0x50]
mov esi, eax
mov dword [esp], 0x5410d2
mov ecx, esi
call fcn.004887f0
sub esp, 4
test eax, eax
jne 0x4efc30
mov eax, dword [0x538748]
mov esi, dword [ebp - 0x4c]
mov dword [esi], eax
lock add dword [eax], 1
jmp 0x4efb39
mov esi, edi
jmp 0x4efb95
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004f4f90
mov edx, dword [ebp - 0x30]
sub esp, 0x10
jmp 0x4ef8d9
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004f4f90
mov edx, dword [ebp - 0x30]
sub esp, 0x10
jmp 0x4ef87b
mov dword [esp], 0x14
mov esi, dword [ebp - 0x48]
call fcn.00513bb0
mov dword [esp + 4], 1
mov ecx, eax
mov ebx, eax
mov dword [esp], esi
call fcn.004ed500
mov eax, dword [ebp - 0x4c]
sub esp, 8
mov dword [eax], ebx
jmp 0x4efb39
mov dword [esp], 0x14
call fcn.00513bb0
mov dword [esp + 4], 1
mov dword [esp], ebx
mov ecx, eax
mov esi, eax
call fcn.004ed500
jmp 0x4ef530
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], 1
lea ecx, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004f4f90
mov eax, dword [ebp - 0x30]
sub esp, 0x10
jmp 0x4efa6a
mov dword [esp], str.locale::locale_null_not_valid
call fcn.00528d10
mov dword [esp], 0x5410d4
call fcn.00528c60
mov dword [esp], 0x5410d4
call fcn.00528c60
mov dword [esp], 0x5410d4
call fcn.00528c60
mov dword [esp], 0x5410d4
call fcn.00528c60
mov dword [esp], 0x5410d4
call fcn.00528c60
mov dword [esp], 0x5410d4
call fcn.00528c60
mov esi, eax
jmp 0x528194
mov dword [esp], ebx
mov ebx, esi
call fcn.00513b60
mov eax, dword [ebp - 0x30]
lea esi, [ebp - 0x28]
cmp eax, esi
je 0x5281b0
mov dword [esp], eax
call fcn.00513b60
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x40]
cmp eax, esi
je 0x5281c2
mov dword [esp], eax
call fcn.00513b60
mov dword [esp], ebx
call fcn.00461820
mov dword [esp], esi
call fcn.00513b60
mov dword [esp], ebx
call fcn.00461820
mov dword [esp], ebx
mov ebx, esi
call fcn.00513b60
jmp 0x5281b0