Function at 0x100136d0
Capabilities:
Query environment variable

Disassembly:
endbr32
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x110
lea edx, [ebp - 0x118]
mov eax, dword [0x10234e38]
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 0x10013712
cmp edx, 0x105
jae 0x10013712
inc edx
jmp 0x10013719
mov byte [ebp - 0x118], 0
xor eax, eax
lea ebx, [ebp - 0x118]
mov dword [0x1024043c], eax
mov dword [0x10240434], eax
mov dword [0x10240438], eax
mov dword [0x10240430], 1
test edx, edx
je 0x100138c6
cmp byte [ebp - 0x118], 0
je 0x100138aa
mov esi, 0x1020d20c
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x1001377a
test dl, dl
je 0x10013776
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x1001377a
add edi, 2
add esi, 2
test dl, dl
jne 0x1001375a
xor eax, eax
jmp 0x1001377f
sbb eax, eax
or eax, 1
test eax, eax
je 0x10013884
mov esi, str.little
lea edi, [ebp - 0x118]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x100137b2
test dl, dl
je 0x100137ae
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x100137b2
add edi, 2
add esi, 2
test dl, dl
jne 0x10013792
xor eax, eax
jmp 0x100137b7
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001385e
push 0x3b
lea eax, [ebp - 0x118]
push eax
call fcn.101c8a70
mov esi, eax
add esp, 8
test esi, esi
je 0x10013acb
push str.big_
lea eax, [ebp - 0x118]
push eax
call fcn.101c8800
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x10013ab7
push str.little_
lea eax, [ebp - 0x118]
push eax
call fcn.101c8800
mov edx, eax
lea eax, [ebp - 0x118]
add esp, 8
cmp eax, edx
je 0x100138e7
xor eax, eax
push eax
push 0x60
mov dword [0x1024043c], eax
mov dword [0x10240434], eax
mov dword [0x10240438], eax
call fcn.10022aa0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100138e2
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x1024043c], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100138e2
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [0x1024043c], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100138e2
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 [0x10234e38]
jne 0x100138e2
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 [0x10234e38]
jne 0x100138e2
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.101a6152
mov dword [0x1024043c], 0xffffffff
mov edi, 0xffffffff
lea ebx, [esi + 1]
push 0x3a
push ebx
call fcn.101c8a70
mov esi, eax
add esp, 8
test esi, esi
je 0x10013aad
push str.big:
push ebx
call fcn.101c8800
add esp, 8
cmp ebx, eax
je 0x10013aa3
push str.little:
push ebx
call fcn.101c8800
add esp, 8
cmp ebx, eax
jne 0x10013822
mov eax, 0xffffffff
lea ebx, [esi + 1]
cmp eax, edi
jne 0x1001394b
mov eax, 0
cmp byte [ebx], 0
je 0x10013822
xor edx, edx
mov dword [ebp - 0x11c], eax
xor ecx, ecx
movsx eax, byte [ebx]
test eax, eax
je 0x10013a98
test ecx, ecx
je 0x100139ae
cmp ecx, 2
je 0x100139ae
cmp ecx, 1
jne 0x10013987
mov edi, eax
and edi, 0xfffffffe
cmp edi, 0x2c
je 0x10013a2b
jmp 0x10013990
cmp ecx, 3
jne 0x10013822
cmp eax, 0x2c
je 0x10013a7c
lea edi, [eax - 0x30]
cmp edi, 9
ja 0x10013822
lea esi, [esi + esi*4]
lea esi, [eax + esi*2 - 0x30]
jmp 0x100139bb
lea esi, [eax - 0x30]
cmp esi, 9
ja 0x10013822
inc ecx
inc ebx
cmp edx, 0x40
jl 0x1001395e
mov eax, dword [ebp - 0x11c]
cmp byte [ebx], 0
jne 0x10013822
movsx ebx, byte [ebx - 1]
cmp ebx, 0x2c
je 0x10013822
cmp ebx, 0x2d
je 0x10013822
cmp ecx, 1
je 0x10013a45
cmp esi, dword [edx*4 + 0x10240220]
jl 0x10013822
mov dword [edx*4 + 0x10240320], esi
inc edx
mov dword [0x10240434], eax
mov dword [0x10240438], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100138e2
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [edx*4 + 0x10240220], esi
cmp eax, 0x2d
jne 0x10013990
mov ecx, 2
jmp 0x100139bb
mov dword [edx*4 + 0x10240220], esi
mov dword [edx*4 + 0x10240320], esi
inc edx
mov dword [0x10240434], eax
mov dword [0x10240438], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x10234e38]
jne 0x100138e2
jmp 0x10013856
cmp esi, dword [edx*4 + 0x10240220]
jl 0x10013822
mov dword [edx*4 + 0x10240320], esi
inc edx
xor ecx, ecx
jmp 0x100139bb
mov eax, dword [ebp - 0x11c]
jmp 0x100139d0
mov eax, 1
jmp 0x1001393f
mov eax, 1
jmp 0x10013942
mov dword [0x1024043c], 1
mov edi, 1
jmp 0x100138f6
xor edi, edi
jmp 0x100138f9