Function at 0x6a3045f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x6a304acd
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov dword [esp], 0x6a3130e0
call fcn.6a3059f8
test eax, eax
jne 0x6a304a95
mov esi, dword [ebp + 8]
test esi, esi
je 0x6a304c42
mov ebx, dword [0x6a31b068]
test ebx, ebx
je 0x6a304774
mov edx, dword [0x6a31bd64]
mov dword [ebp - 0x30], edx
test edx, edx
je 0x6a304cf5
mov ebx, edx
mov esi, dword [ebp + 8]
jmp 0x6a304664
jl 0x6a304a9c
mov ebx, dword [ebx]
test ebx, ebx
je 0x6a304abe
lea eax, [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
cmp eax, 0
jne 0x6a304654
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x6a304cf5
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x38], ecx
mov al, byte [ecx]
cmp al, 0x2f
je 0x6a30474a
cmp al, 0x5c
je 0x6a30474a
lea edx, [eax - 0x41]
cmp dl, 0x19
jbe 0x6a304783
sub eax, 0x61
cmp al, 0x19
jbe 0x6a304783
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x38]
repne scasb al, byte es:[edi]
not ecx
mov ebx, 0x105
mov edi, ecx
jmp 0x6a3046e2
call sub.msvcrt.dll__errno
cmp dword [eax], 0x22
jne 0x6a304792
mov eax, ebx
shr eax, 1
lea ebx, [ebx + eax + 0x20]
lea eax, [ebx + edi + 0x1e]
and eax, 0xfffffff0
call fcn.6a30d5c0
lea esi, [esp + 0x23]
and esi, 0xfffffff0
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll__getcwd
test eax, eax
je 0x6a3046cc
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_strchr
mov edx, 0x6a314149
jmp 0x6a30472a
mov eax, ebx
mov cl, byte [edx]
mov byte [eax], cl
lea ebx, [eax + 1]
inc edx
test cl, cl
jne 0x6a304728
xor edx, edx
mov ebx, dword [ebp - 0x38]
nop
mov cl, byte [ebx + edx]
mov byte [eax + edx], cl
inc edx
test cl, cl
jne 0x6a30473c
mov dword [ebp - 0x38], esi
cmp dword [ebp + 0x1c], 3
je 0x6a304ab4
jg 0x6a304805
cmp dword [ebp + 0x1c], 1
je 0x6a304adf
jle 0x6a304ce1
mov edx, 0x6a314156
jmp 0x6a304827
mov dword [0x6a31b068], 0xffffffff
jmp 0x6a30463b
mov ebx, dword [ebp - 0x38]
cmp byte [ebx + 1], 0x3a
jne 0x6a3046b2
jmp 0x6a30474a
mov dword [esp], 0x6a3130e0
call fcn.6a305c70
test eax, eax
jne 0x6a304a95
cmp dword [0x6a31b068], 1
je 0x6a3047c8
mov dword [esp], str.GETTEXT_LOG_UNTRANSLATED
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6a3047c8
cmp byte [eax], 0
jne 0x6a304af3
call sub.msvcrt.dll__errno
mov edi, dword [ebp - 0x48]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x6a3047f4
cmp dword [ebp + 0x18], 1
je 0x6a304c63
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
cmp dword [ebp + 0x1c], 5
je 0x6a304ae9
jl 0x6a304c59
cmp dword [ebp + 0x1c], 0x6c1
je 0x6a304c4f
mov edx, 0x6a314191
mov dword [esp + 4], edx
mov esi, dword [ebp + 0x1c]
mov dword [esp], esi
mov dword [ebp - 0x4c], edx
call fcn.6a3078f0
mov ebx, eax
test eax, eax
mov edx, dword [ebp - 0x4c]
je 0x6a304cbb
mov dword [ebp - 0x2c], 0
mov ecx, 2
mov esi, ebx
mov edi, 0x6a31419c
repe cmpsb byte [esi], byte es:[edi]
jne 0x6a304c02
mov esi, 0xffffffff
xor eax, eax
mov ecx, esi
mov edi, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x40], ecx
mov ecx, esi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [ebp - 0x40]
lea eax, [edi + ecx + 0x22]
and eax, 0xfffffff0
call fcn.6a30d5c0
lea eax, [esp + 0x23]
and eax, 0xfffffff0
mov dword [ebp - 0x34], eax
jmp 0x6a30489a
mov eax, esi
mov cl, byte [edx]
mov byte [eax], cl
lea esi, [eax + 1]
inc edx
test cl, cl
jne 0x6a304898
mov edx, 0x6a314149
jmp 0x6a3048b3
mov eax, esi
inc esi
mov cl, byte [edx]
mov byte [eax], cl
inc edx
test cl, cl
jne 0x6a3048b0
mov edi, eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
rep movsb byte es:[edi], byte [esi]
mov edx, 0x6a314198
nop
mov al, byte [edx]
mov byte [edi], al
inc edi
inc edx
test al, al
jne 0x6a3048cc
mov ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + 0x1e]
and eax, 0xfffffff0
call fcn.6a30d5c0
lea edx, [esp + 0x23]
and edx, 0xfffffff0
mov dword [ebp - 0x2c], edx
nop
mov al, byte [ebx]
cmp al, 0x3a
je 0x6a304b98
test al, al
jne 0x6a304b1c
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], 0x43
mov byte [ecx + 1], 0
mov esi, dword [ebp - 0x2c]
mov edi, 0x6a31419c
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x6a304792
mov edi, str.POSIX
mov ecx, 6
mov esi, dword [ebp - 0x2c]
repe cmpsb byte [esi], byte es:[edi]
je 0x6a304792
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov esi, dword [ebp - 0x38]
mov dword [esp], esi
call fcn.6a3016c4
mov esi, eax
test eax, eax
je 0x6a3048f8
lea edi, [ebp - 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.6a303e28
test eax, eax
je 0x6a304ba0
cmp eax, 0xffffffff
je 0x6a304792
test eax, eax
je 0x6a3048f8
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [ebp - 0x40]
lea eax, [ebx + ecx + 0x19]
mov dword [esp], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], ecx
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
je 0x6a304a66
lea eax, [eax + 0x18]
mov edi, eax
mov esi, dword [ebp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x30], edi
mov ecx, dword [ebp - 0x40]
inc ecx
mov esi, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 4], ecx
mov eax, dword [sym.intl.dll__nl_msg_cat_cntr]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov esi, dword [ebp - 0x2c]
mov dword [ebx + 0x10], esi
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x14], eax
mov dword [esp], 0x6a313160
mov dword [ebp - 0x4c], edx
call fcn.6a305b38
test eax, eax
mov edx, dword [ebp - 0x4c]
jne 0x6a304a95
mov dword [esp + 8], 0x6a303dc4
mov dword [esp + 4], 0x6a31b06c
mov dword [esp], ebx
mov dword [ebp - 0x4c], edx
call fcn.6a30d630
mov esi, eax
mov dword [esp], 0x6a313160
call fcn.6a305c70
test eax, eax
mov edx, dword [ebp - 0x4c]
jne 0x6a304a95
test esi, esi
je 0x6a304d01
cmp ebx, dword [esi]
jne 0x6a304d01
mov dword [ebp - 0x4c], edx
call sub.msvcrt.dll__errno
mov edi, dword [ebp - 0x48]
mov dword [eax], edi
mov edx, dword [ebp + 0x14]
test edx, edx
mov edx, dword [ebp - 0x4c]
jne 0x6a304c6e
mov dword [esp], 0x6a3130e0
call fcn.6a305c70
test eax, eax
je 0x6a3047e9
call sub.msvcrt.dll_abort
nop
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], str.c:_devel_target_33bc8ddfeabcf34f6317ef7b2e85485f_share_locale
cmp dword [ebp + 0x1c], 3
jne 0x6a304754
mov edx, 0x6a31415f
jmp 0x6a304827
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], str.c:_devel_target_33bc8ddfeabcf34f6317ef7b2e85485f_share_locale
jmp 0x6a30474a
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, 0x6a31414b
jmp 0x6a304827
mov edx, 0x6a314176
jmp 0x6a304827
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], ebx
mov esi, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.6a3079f8
jmp 0x6a3047c8
mov edx, dword [ebp - 0x2c]
jmp 0x6a304b28
cmp al, 0x3a
je 0x6a304b32
mov byte [edx], al
inc edx
inc ebx
mov al, byte [ebx]
test al, al
jne 0x6a304b24
mov byte [edx], 0
cmp dword [0x6a31b068], 1
jne 0x6a304914
mov dword [esp + 4], 0x2f
mov esi, dword [ebp - 0x2c]
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x6a3048f8
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
jne 0x6a3048f8
mov al, byte [esi]
lea edx, [eax - 0x41]
cmp dl, 0x19
ja 0x6a304cd1
mov edi, dword [ebp - 0x2c]
cmp byte [edi + 1], 0x3a
jne 0x6a304914
jmp 0x6a3048f8
inc ebx
jmp 0x6a3048f8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x6a3048f8
xor edi, edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp + 0xc]
jmp 0x6a304bc8
inc edi
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + edi*4 + 0x10]
test eax, eax
je 0x6a304bfa
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.6a303e28
test eax, eax
je 0x6a304bbc
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
mov esi, dword [esi + edi*4 + 0x10]
jmp 0x6a304991
mov ebx, dword [ebp - 0x44]
jmp 0x6a3048f8
mov dword [esp], str.LANGUAGE
mov dword [ebp - 0x4c], edx
call sub.msvcrt.dll_getenv
test eax, eax
mov edx, dword [ebp - 0x4c]
je 0x6a304c1d
cmp byte [eax], 0
jne 0x6a304c3b
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x6a304861
mov dword [ebp - 0x4c], edx
call fcn.6a3064a0
test eax, eax
mov edx, dword [ebp - 0x4c]
je 0x6a304861
mov ebx, eax
jmp 0x6a304861
mov eax, dword [str.messages]
mov dword [ebp + 8], eax
jmp 0x6a30462d
mov edx, 0x6a31417e
jmp 0x6a304827
mov edx, 0x6a31416b
jmp 0x6a304827
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
jmp 0x6a3047e9
mov ebx, dword [edx + 8]
mov eax, dword [ebx + 0x84]
mov edx, dword [ebp + 0x18]
call fcn.6a303c20
mov esi, eax
cmp eax, dword [ebx + 0x88]
sbb eax, eax
and esi, eax
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
add ebx, eax
jmp 0x6a304caf
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_strchr
inc eax
dec esi
cmp eax, ebx
jae 0x6a304a81
test esi, esi
jne 0x6a304c95
mov dword [ebp - 0x2c], eax
jmp 0x6a304a81
call fcn.6a3078fc
mov ebx, eax
mov dword [ebp - 0x2c], 1
mov edx, dword [ebp - 0x4c]
jmp 0x6a30484d
sub eax, 0x61
cmp al, 0x19
ja 0x6a304914
jmp 0x6a304b83
mov edx, str.LC_ALL
cmp dword [ebp + 0x1c], 0
je 0x6a304827
jmp 0x6a304822
mov dword [ebp - 0x38], str.c:_devel_target_33bc8ddfeabcf34f6317ef7b2e85485f_share_locale
jmp 0x6a30474a
mov dword [esp], ebx
mov dword [ebp - 0x4c], edx
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x4c]
jmp 0x6a304a66