Function at 0x6ac4ecf0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x74]
and dword [esp + 0x70], 0x3000
mov esi, dword [esp + 0x7c]
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0xfffffffd
mov dword [esp + 0x30], eax
xor eax, eax
mov word [esp + 0x40], ax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6ac4f436
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 3
sbb eax, eax
add eax, 3
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
or ah, 2
mov dword [esp + 0x1c], eax
lea esi, [esi]
movsx eax, byte [esi]
lea ebx, [esi + 1]
mov ecx, ebx
test eax, eax
je 0x6ac4ee20
cmp eax, 0x25
jne 0x6ac4ee30
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], eax
movzx edx, byte [esi + 1]
lea eax, [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
test dl, dl
je 0x6ac4ee0a
lea eax, [edx - 0x20]
movsx edi, dl
cmp al, 0x5a
lea esi, [ecx + 1]
ja case.0x6ac4ede5.1
movzx eax, al
jmp dword [eax*4 + 0x6ac54d70]
movzx edx, byte [ecx + 1]
mov ecx, esi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 4
test dl, dl
jne 0x6ac4edd1
mov esi, ecx
movsx eax, byte [esi]
lea ebx, [esi + 1]
mov ecx, ebx
test eax, eax
jne 0x6ac4ed90
lea esi, [esi]
mov eax, dword [esp + 0x44]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x2c]
mov esi, ebx
call fcn.6ac4d890
jmp 0x6ac4ed80
mov edx, dword [esp + 0x14]
mov eax, ebp
sub edx, 2
cmp edx, 1
jbe case.0x6ac4ede5.51
mov ebx, dword [eax]
add ebp, 4
test ebx, ebx
je 0x6ac4f516
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x2c]
mov eax, ebx
call fcn.6ac4d9e0
jmp 0x6ac4ed80
mov edx, dword [esp + 0x14]
mov eax, ebp
mov dword [esp + 0x38], 0xffffffff
sub edx, 2
cmp edx, 1
jbe 0x6ac4f2ad
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
mov edx, 1
add ebp, 4
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
call fcn.6ac4d9e0
jmp 0x6ac4ed80
cmp dword [esp + 0x14], 4
je 0x6ac4f490
cmp dword [esp + 0x14], 1
mov eax, dword [ebp]
mov edx, dword [esp + 0x44]
je 0x6ac4f42b
cmp dword [esp + 0x14], 2
je 0x6ac4f53a
cmp dword [esp + 0x14], 3
mov dword [eax], edx
je 0x6ac4f590
add ebp, 4
jmp 0x6ac4ed80
movzx edx, byte [ecx + 1]
cmp dl, 0x6c
je 0x6ac4f4b7
mov dword [esp + 0x14], 2
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
movzx edx, byte [ecx + 1]
mov ecx, esi
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
movzx edx, byte [ecx + 1]
cmp dl, 0x68
je 0x6ac4f4d5
mov dword [esp + 0x14], 1
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
mov eax, dword [esp + 0x30]
or eax, 0x20
test al, 4
mov dword [esp + 0x30], eax
je 0x6ac4f18c
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e590
jmp 0x6ac4ed80
mov eax, dword [esp + 0x30]
or eax, 0x20
test al, 4
mov dword [esp + 0x30], eax
je 0x6ac4f2dd
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e4b0
jmp 0x6ac4ed80
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6ac4efd6
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x30], eax
je 0x6ac4f525
mov eax, dword [ebp]
lea ebx, [ebp + 4]
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
mov ebp, ebx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov eax, 0x78
call fcn.6ac4dd30
jmp 0x6ac4ed80
cmp dword [esp + 0x14], 3
mov eax, edi
je 0x6ac4f47a
cmp dword [esp + 0x14], 2
je 0x6ac4f414
mov edi, dword [ebp]
lea edx, [ebp + 4]
cmp dword [esp + 0x14], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
je 0x6ac4f544
cmp dword [esp + 0x14], 4
mov ebp, edx
je 0x6ac4f5a0
cmp eax, 0x75
je 0x6ac4f0e7
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp], edi
call fcn.6ac4dd30
jmp 0x6ac4ed80
mov eax, dword [esp + 0x30]
or eax, 0x20
test al, 4
mov dword [esp + 0x30], eax
je 0x6ac4f28c
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e400
jmp 0x6ac4ed80
or dword [esp + 0x30], 0x80
cmp dword [esp + 0x14], 3
je 0x6ac4f4a1
cmp dword [esp + 0x14], 2
je 0x6ac4f3fe
mov eax, dword [ebp]
lea edx, [ebp + 4]
mov dword [esp + 0x20], eax
sar eax, 0x1f
cmp dword [esp + 0x14], 1
mov dword [esp + 0x24], eax
je 0x6ac4f55c
cmp dword [esp + 0x14], 4
mov ebp, edx
je 0x6ac4f5b6
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x24]
call fcn.6ac4db10
jmp 0x6ac4ed80
or dword [esp + 0x30], 4
movzx edx, byte [ecx + 1]
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
movzx edx, byte [ecx + 1]
cmp dl, 0x36
je 0x6ac4f454
cmp dl, 0x33
jne 0x6ac4ef0d
cmp byte [ecx + 2], 0x32
je 0x6ac4f5e9
mov edx, 0x33
mov ecx, esi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
mov eax, dword [esp + 0x30]
or eax, 0x20
test al, 4
mov dword [esp + 0x30], eax
je 0x6ac4f213
fld xword [ebp]
lea ebx, [ebp + 0xc]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e710
jmp 0x6ac4ed80
mov eax, dword [esp + 0x30]
test al, 4
jne 0x6ac4ef77
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e590
jmp 0x6ac4ed80
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6ac4f38d
or dword [esp + 0x30], 0x100
movzx edx, byte [ecx + 1]
mov ecx, esi
jmp 0x6ac4ee06
mov edi, dword [esp + 0x18]
test edi, edi
je 0x6ac4f301
test dword [esp + 0x10], 0xfffffffd
jne 0x6ac4f3e3
mov edx, dword [ebp]
lea eax, [ebp + 4]
mov edi, dword [esp + 0x18]
test edx, edx
mov dword [edi], edx
js 0x6ac4f573
movzx edx, byte [ecx + 1]
mov ebp, eax
mov ecx, esi
mov dword [esp + 0x18], 0
jmp 0x6ac4ee06
mov eax, dword [esp + 0x30]
test al, 4
jne 0x6ac4f167
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e710
jmp 0x6ac4ed80
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6ac4f38d
or dword [esp + 0x30], 0x40
movzx edx, byte [ecx + 1]
mov ecx, esi
jmp 0x6ac4ee06
mov eax, edi
lea edx, [esp + 0x2c]
call fcn.6ac4d890
jmp 0x6ac4ed80
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6ac4f38d
or dword [esp + 0x30], 0x800
movzx edx, byte [ecx + 1]
mov ecx, esi
jmp 0x6ac4ee06
mov eax, dword [esp + 0x30]
test al, 4
jne 0x6ac4f083
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e400
jmp 0x6ac4ed80
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [ebp]
lea ebx, [ebp + 4]
mov edx, 1
lea ecx, [esp + 0x2c]
mov ebp, ebx
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
call fcn.6ac4d8f0
jmp 0x6ac4ed80
mov eax, dword [esp + 0x30]
test al, 4
jne 0x6ac4efa3
fld qword [ebp]
lea ebx, [ebp + 8]
fstp xword [esp]
mov ebp, ebx
lea eax, [esp + 0x2c]
call fcn.6ac4e4b0
jmp 0x6ac4ed80
cmp dword [esp + 0x10], 1
jbe 0x6ac4f4f3
movzx edx, byte [ecx + 1]
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6ac4f38d
or dword [esp + 0x30], 0x400
movzx edx, byte [ecx + 1]
mov ecx, esi
jmp 0x6ac4ee06
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6ac4f3d0
mov eax, dword [esp + 0x10]
cmp eax, 4
je 0x6ac4f607
sub edx, 0x30
cmp dl, 9
ja 0x6ac4f607
test eax, eax
je 0x6ac4f3c4
mov edx, eax
cmp eax, 2
mov eax, 3
cmovne eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6ac4f38d
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
js 0x6ac4f440
lea eax, [eax + eax*4]
lea eax, [edi + eax*2 - 0x30]
mov edi, dword [esp + 0x18]
mov dword [edi], eax
movzx edx, byte [ecx + 1]
mov ecx, esi
jmp 0x6ac4ee06
mov ebx, dword [ebp]
mov eax, 0x6ac54d44
lea edi, [ebp + 4]
mov ebp, edi
test ebx, ebx
cmove ebx, eax
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x2c]
mov edx, eax
mov eax, ebx
call fcn.6ac4d8f0
jmp 0x6ac4ed80
mov dword [esp + 0x10], 1
jmp 0x6ac4f36a
or dword [esp + 0x30], 0x200
movzx edx, byte [ecx + 1]
mov ecx, esi
jmp 0x6ac4ee06
movzx edx, byte [ecx + 1]
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x20], eax
sar eax, 0x1f
mov dword [esp + 0x24], eax
jmp 0x6ac4f0e7
mov edi, dword [ebp]
add ebp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
jmp 0x6ac4f04a
mov word [eax], dx
add ebp, 4
jmp 0x6ac4ed80
mov eax, 3
jmp 0x6ac4ed6b
mov eax, dword [esp + 0x18]
sub edi, 0x30
mov dword [eax], edi
movzx edx, byte [ecx + 1]
mov ecx, esi
jmp 0x6ac4ee06
cmp byte [ecx + 2], 0x34
je 0x6ac4f5cb
mov edx, 0x36
mov ecx, esi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
mov ecx, dword [ebp]
add ebp, 8
mov ebx, dword [ebp - 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
jmp 0x6ac4f04a
mov edx, dword [ebp]
add ebp, 4
mov eax, dword [esp + 0x44]
mov byte [edx], al
jmp 0x6ac4ed80
mov eax, dword [ebp]
add ebp, 8
mov edx, dword [ebp - 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x6ac4f0e7
lea esi, [ecx + 2]
movzx edx, byte [ecx + 2]
mov dword [esp + 0x14], 3
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
lea esi, [ecx + 2]
movzx edx, byte [ecx + 2]
mov dword [esp + 0x14], 4
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
movzx edx, byte [ecx + 1]
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 2
jmp 0x6ac4ee06
mov edx, 6
mov ebx, str._null_
jmp 0x6ac4ee69
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], 8
mov dword [esp + 0x30], eax
jmp 0x6ac4efd6
mov dword [eax], edx
add ebp, 4
jmp 0x6ac4ed80
movzx ecx, word [esp + 0x20]
mov ebp, edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], ecx
jmp 0x6ac4f04a
movsx eax, word [esp + 0x20]
mov ebp, edx
mov dword [esp + 0x20], eax
sar eax, 0x1f
mov dword [esp + 0x24], eax
jmp 0x6ac4f0e7
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x6ac4f61c
or dword [esp + 0x30], 0x400
neg dword [esp + 0x34]
jmp 0x6ac4f1f2
mov edi, edx
add ebp, 4
sar edi, 0x1f
mov dword [eax + 4], edi
jmp 0x6ac4ed80
movzx edx, byte [esp + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edx
jmp 0x6ac4f04a
movsx eax, byte [esp + 0x20]
mov dword [esp + 0x20], eax
sar eax, 0x1f
mov dword [esp + 0x24], eax
jmp 0x6ac4f0e7
lea esi, [ecx + 3]
movzx edx, byte [ecx + 3]
mov dword [esp + 0x14], 3
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
lea esi, [ecx + 3]
movzx edx, byte [ecx + 3]
mov dword [esp + 0x14], 2
mov ecx, esi
mov dword [esp + 0x10], 4
jmp 0x6ac4ee06
lea edx, [esp + 0x2c]
mov eax, 0x25
mov esi, ebx
call fcn.6ac4d890
jmp 0x6ac4ed80
mov dword [esp + 0x38], 0xffffffff
mov ebp, eax
movzx edx, byte [ecx + 1]
mov dword [esp + 0x18], 0
mov ecx, esi
jmp 0x6ac4ee06