Function at 0x5e5410
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x110
lea edx, [ebp - 0x118]
mov eax, dword [0x7adbc0]
xor eax, ebp
push 0x105
push edx
mov dword [ebp - 0x10], eax
push str.F_UFMTENDIAN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
jbe 0x5e544e
cmp edx, 0x105
jae 0x5e544e
inc edx
jmp 0x5e5455
mov byte [ebp - 0x118], 0
xor eax, eax
lea ebx, [ebp - 0x118]
mov dword [0x7f68a0], eax
mov dword [0x7f6898], eax
mov dword [0x7f689c], eax
mov dword [0x7f6894], 1
test edx, edx
je 0x5e5602
cmp byte [ebp - 0x118], 0
je 0x5e55e6
mov esi, 0x7426b4
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x5e54b6
test dl, dl
je 0x5e54b2
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x5e54b6
add edi, 2
add esi, 2
test dl, dl
jne 0x5e5496
xor eax, eax
jmp 0x5e54bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5e55c0
mov esi, str.little
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x5e54ee
test dl, dl
je 0x5e54ea
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x5e54ee
add edi, 2
add esi, 2
test dl, dl
jne 0x5e54ce
xor eax, eax
jmp 0x5e54f3
sbb eax, eax
or eax, 1
test eax, eax
je 0x5e559a
push 0x3b
lea eax, [ebp - 0x118]
push eax
call fcn.00696150
mov esi, eax
add esp, 8
test esi, esi
je 0x5e580d
push str.big_
lea eax, [ebp - 0x118]
push eax
call fcn.00696280
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x5e57f9
push str.little_
lea eax, [ebp - 0x118]
push eax
call fcn.00696280
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x5e5623
xor eax, eax
push eax
push 0x60
mov dword [0x7f68a0], eax
mov dword [0x7f6898], eax
mov dword [0x7f689c], eax
call fcn.0060b140
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x5e561e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x7f68a0], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x5e561e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x7f68a0], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x5e561e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x5e561e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x5e561e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.00693023
mov dword [0x7f68a0], 0xffffffff
mov edi, 0xffffffff
lea ebx, [esi + 1]
push 0x3a
push ebx
call fcn.00696150
mov esi, eax
add esp, 8
test esi, esi
je 0x5e57ef
push str.big:
push ebx
call fcn.00696280
add esp, 8
cmp ebx, eax
je 0x5e57e5
push str.little:
push ebx
call fcn.00696280
add esp, 8
cmp ebx, eax
jne 0x5e555e
mov eax, 0xffffffff
lea ebx, [esi + 1]
cmp eax, edi
jne 0x5e5687
mov eax, 0
cmp byte [ebx], 0
je 0x5e555e
xor edx, edx
mov dword [ebp - 0x11c], eax
xor ecx, ecx
movsx eax, byte [ebx]
test eax, eax
je 0x5e57da
test ecx, 0xfffffffd
je 0x5e57c8
cmp ecx, 1
jne 0x5e56c6
mov edi, eax
and edi, 0xfffffffe
cmp edi, 0x2c
je 0x5e5792
jmp 0x5e56cf
cmp ecx, 3
jne 0x5e555e
cmp eax, 0x2c
je 0x5e57ac
lea edi, [eax - 0x30]
cmp edi, 9
ja 0x5e555e
lea esi, [esi + esi*4]
lea esi, [eax + esi*2 - 0x30]
inc ebx
cmp edx, 0x40
jl 0x5e569a
mov eax, dword [ebp - 0x11c]
cmp byte [ebx], 0
jne 0x5e555e
movsx ebx, byte [ebx - 1]
cmp ebx, 0x2c
je 0x5e555e
cmp ebx, 0x2d
je 0x5e555e
cmp ecx, 1
je 0x5e575b
cmp esi, dword [edx*4 + 0x7f6660]
jl 0x5e555e
mov dword [edx*4 + 0x7f6780], esi
inc edx
mov dword [0x7f6898], eax
mov dword [0x7f689c], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x5e561e
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [edx*4 + 0x7f6660], esi
mov dword [edx*4 + 0x7f6780], esi
inc edx
mov dword [0x7f6898], eax
mov dword [0x7f689c], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x5e561e
jmp 0x5e5592
mov dword [edx*4 + 0x7f6660], esi
cmp eax, 0x2d
jne 0x5e56cf
mov ecx, 2
jmp 0x5e56eb
cmp esi, dword [edx*4 + 0x7f6660]
jl 0x5e555e
mov dword [edx*4 + 0x7f6780], esi
inc edx
xor ecx, ecx
jmp 0x5e56eb
lea esi, [eax - 0x30]
cmp esi, 9
ja 0x5e555e
inc ecx
jmp 0x5e56eb
mov eax, dword [ebp - 0x11c]
jmp 0x5e5700
mov eax, 1
jmp 0x5e567b
mov eax, 1
jmp 0x5e567e
mov dword [0x7f68a0], 1
mov edi, 1
jmp 0x5e5632
xor edi, edi
jmp 0x5e5635