Function at 0x7045acf0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x78
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x98]
and eax, 0x3000
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
push str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x7045ae00
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x7045ae00
mov edx, 2
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xfffffffd
mov word [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov cl, byte [esi]
lea esi, [esi]
test cl, cl
je 0x7045ae30
lea edi, [esi + 1]
cmp cl, 0x25
jne 0x7045ae17
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xffffffff
lea eax, [esp + 0x24]
mov cl, byte [esi + 1]
xor edx, edx
mov esi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
test cl, cl
je 0x7045ae30
lea eax, [ecx - 0x20]
inc esi
movsx ebx, cl
cmp al, 0x5a
jbe 0x7045ae40
cmp edx, 3
ja 0x7045adec
cmp ebx, 0x39
jle 0x7045b369
lea edx, [esp + 0x1c]
mov eax, 0x25
call fcn.70459a60
mov esi, edi
mov cl, byte [edi]
jmp 0x7045ad90
call fcn.7045df80
mov edx, 3
test al, 1
je 0x7045ad3e
jmp 0x7045ad39
movsx eax, cl
lea edx, [esp + 0x1c]
call fcn.70459a60
mov cl, byte [esi + 1]
test cl, cl
mov esi, edi
jne 0x7045ad98
mov eax, dword [esp + 0x34]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
and eax, 0xff
jmp dword [eax*4 + 0x704626e8]
mov dword [esp + 0xc], 2
cmp byte [esi], 0x6c
jne case.0x7045ae45.44
inc esi
mov dword [esp + 0xc], 3
mov eax, dword [esp + 0x20]
mov edx, 4
or eax, 4
mov dword [esp + 0x20], eax
mov cl, byte [esi]
jmp 0x7045adcf
mov eax, dword [esp + 0x20]
or eax, 0x20
mov dword [esp + 0x20], eax
test byte [esp + 0x20], 4
jne 0x7045b0c1
sub esp, 0x10
lea ebx, [ebp + 8]
fld qword [ebp]
fstp xword [esp]
lea eax, [esp + 0x2c]
mov ebp, ebx
call fcn.7045aaa0
mov cl, byte [esi]
add esp, 0x10
jmp 0x7045ad90
mov eax, dword [esp + 0x20]
or eax, 0x20
mov dword [esp + 0x20], eax
test byte [esp + 0x20], 4
jne 0x7045b0ac
sub esp, 0x10
lea ebx, [ebp + 8]
fld qword [ebp]
fstp xword [esp]
lea eax, [esp + 0x2c]
mov ebp, ebx
call fcn.7045a290
mov cl, byte [esi]
add esp, 0x10
jmp 0x7045ad90
mov eax, dword [esp + 0x20]
or eax, 0x20
mov dword [esp + 0x20], eax
test byte [esp + 0x20], 4
jne 0x7045b097
sub esp, 0x10
lea ebx, [ebp + 8]
fld qword [ebp]
fstp xword [esp]
lea eax, [esp + 0x2c]
mov ebp, ebx
call fcn.7045ac30
mov cl, byte [esi]
add esp, 0x10
jmp 0x7045ad90
mov eax, dword [esp + 0x20]
or eax, 0x20
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
mov eax, ebp
test dl, 4
je 0x7045afd6
fld xword [eax]
add ebp, 0xc
fld st(0)
fstp xword [esp + 0x50]
fxam
wait
fnstsw ax
and eax, 0x4500
cmp eax, 0x100
je 0x7045b4a0
mov ecx, dword [esp + 0x58]
mov ebx, ecx
and ebx, 0x8000
je 0x7045af6d
or dl, 0x80
mov dword [esp + 0x20], edx
fxam
wait
fnstsw ax
fstp st(0)
and eax, 0x4500
cmp eax, 0x500
je 0x7045b652
mov edx, ecx
and edx, 0x7fff
test dx, dx
mov word [esp + 0x58], dx
jne 0x7045afa0
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x54]
je 0x7045afab
lea eax, [edx - 0x3fff]
mov word [esp + 0x58], ax
sub esp, 0xc
lea edx, [esp + 0x28]
push edx
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push eax
call fcn.7045a5b0
mov cl, byte [esi]
add esp, 0x20
jmp 0x7045ad90
fld qword [eax]
add ebp, 8
fst qword [esp + 0x40]
fxam
wait
fnstsw ax
and eax, 0x4500
cmp eax, 0x100
je 0x7045b4a0
mov bx, word [esp + 0x46]
mov edi, ebx
and edi, 0x8000
je 0x7045b00a
or dl, 0x80
mov dword [esp + 0x20], edx
sub esp, 0x10
fstp qword [esp]
call fcn.7045d280
add esp, 0x10
cmp eax, 0x500
je 0x7045b683
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, ebx
shld edx, eax, 8
shr cx, 4
mov dword [esp + 0x44], edx
shl eax, 8
and ecx, 0x7ff
and word [esp + 0x46], 0xfff
mov word [esp + 0x48], cx
mov dword [esp + 0x40], eax
test cx, cx
jne 0x7045b538
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
je 0x7045b06c
mov word [esp + 0x48], 0xfc01
sub esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov edi, dword [esp + 0x5c]
push edi
mov ebx, dword [esp + 0x5c]
push ebx
mov ecx, dword [esp + 0x5c]
push ecx
mov edx, dword [esp + 0x5c]
push edx
call fcn.7045a5b0
mov cl, byte [esi]
add esp, 0x20
jmp 0x7045ad90
push eax
lea ebx, [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 4]
push ecx
mov edx, dword [ebp]
push edx
jmp 0x7045af09
push eax
lea ebx, [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 4]
push eax
mov eax, dword [ebp]
push eax
jmp 0x7045aed2
push edi
lea ebx, [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 4]
push edx
mov eax, dword [ebp]
push eax
jmp 0x7045ae9b
mov eax, dword [esp + 0xc]
sub eax, 2
cmp eax, 1
ja 0x7045b43a
mov ebx, dword [ebp]
test ebx, ebx
je 0x7045b57d
sub esp, 0xc
add ebp, 4
push ebx
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x2c]
mov edx, eax
mov eax, ebx
call fcn.7045a040
mov cl, byte [esi]
add esp, 0x10
jmp 0x7045ad90
mov cl, byte [esi]
cmp cl, 0x36
jne 0x7045b468
cmp byte [esi + 1], 0x34
jne 0x7045b471
add esi, 2
mov cl, byte [esi]
mov edx, 4
mov dword [esp + 0xc], 3
jmp 0x7045adcf
mov cl, byte [esi]
cmp cl, 0x68
je 0x7045b4f7
mov edx, 4
mov dword [esp + 0xc], 1
jmp 0x7045adcf
mov eax, ebp
cmp dword [esp + 0xc], 4
je 0x7045b4cf
cmp dword [esp + 0xc], 1
je 0x7045b5be
cmp dword [esp + 0xc], 2
je 0x7045b187
cmp dword [esp + 0xc], 3
je 0x7045b669
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
add ebp, 4
mov dword [edx], eax
mov cl, byte [esi]
jmp 0x7045ad90
mov ecx, dword [esp + 0x20]
or cl, 0x80
mov dword [esp + 0x20], ecx
cmp dword [esp + 0xc], 3
je 0x7045b4e1
cmp dword [esp + 0xc], 2
je 0x7045b5d1
mov eax, dword [ebp]
lea ebx, [ebp + 4]
mov edx, eax
mov dword [esp + 0x60], eax
sar edx, 0x1f
mov dword [esp + 0x64], edx
cmp dword [esp + 0xc], 1
je 0x7045b5f3
cmp dword [esp + 0xc], 4
je 0x7045b624
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebp, ebx
call fcn.7045a370
mov cl, byte [esi]
jmp 0x7045ad90
mov cl, byte [esi]
mov edx, 4
mov dword [esp + 0xc], 2
jmp 0x7045adcf
mov eax, ebp
cmp dword [esp + 0xc], 3
je 0x7045b4ba
cmp dword [esp + 0xc], 2
je 0x7045b5a8
mov edx, dword [eax]
add ebp, 4
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0
cmp dword [esp + 0xc], 1
je 0x7045b60a
cmp dword [esp + 0xc], 4
je 0x7045b63b
cmp cl, 0x75
je 0x7045b559
sub esp, 0xc
mov eax, ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
call fcn.70459dc0
mov cl, byte [esi]
add esp, 0x10
jmp 0x7045ad90
mov eax, dword [esp + 0xc]
mov edx, ebp
sub eax, 2
mov dword [esp + 0x28], 0xffffffff
cmp eax, 1
jbe 0x7045b2ba
mov eax, dword [edx]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], al
mov edx, 1
lea eax, [esp + 0x60]
add ebp, 4
call fcn.7045a130
mov cl, byte [esi]
jmp 0x7045ad90
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
and eax, 0xffff
mov edx, 1
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x64], 0
call fcn.7045a040
lea ebx, [ebp + 4]
mov cl, byte [esi]
mov ebp, ebx
jmp 0x7045ad90
test edx, edx
jne case.0x7045ae45.1
mov ecx, dword [esp + 0x20]
or ch, 2
mov dword [esp + 0x20], ecx
mov cl, byte [esi]
jmp 0x7045adcf
cmp edx, 1
jbe 0x7045b50c
mov cl, byte [esi]
mov edx, 4
jmp 0x7045adcf
mov edx, dword [esp + 0x20]
mov eax, ebp
or dh, 8
xor ecx, ecx
mov dword [esp + 0x20], edx
add ebp, 4
mov edx, dword [eax]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
sub esp, 0xc
lea eax, [esp + 0x28]
push eax
mov eax, 0x78
call fcn.70459dc0
mov cl, byte [esi]
add esp, 0x10
jmp 0x7045ad90
test edx, edx
jne 0x7045b39f
mov eax, dword [esp + 0x20]
or ah, 8
mov dword [esp + 0x20], eax
mov cl, byte [esi]
jmp 0x7045adcf
cmp ebx, 0x2f
jle 0x7045adec
test edx, edx
jne 0x7045b528
mov dl, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x7045b39f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
test eax, eax
js 0x7045b571
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x10]
lea eax, [ebx + eax*2 - 0x30]
mov dword [ecx], eax
mov cl, byte [esi]
jmp 0x7045adcf
test edx, edx
jne 0x7045b39f
mov ebx, dword [esp + 0x20]
or ebx, 0x40
mov dword [esp + 0x20], ebx
mov cl, byte [esi]
jmp 0x7045adcf
test edx, edx
jne 0x7045b39f
mov eax, dword [esp + 0x20]
or ah, 4
mov dword [esp + 0x20], eax
mov cl, byte [esi]
jmp 0x7045adcf
test edx, edx
jne 0x7045b39f
mov eax, dword [esp + 0x20]
or ah, 1
mov dword [esp + 0x20], eax
mov cl, byte [esi]
jmp 0x7045adcf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x7045b30f
test edx, edx
sete cl
jne 0x7045b483
mov eax, dword [ebp]
lea ebx, [ebp + 4]
mov ebp, dword [esp + 0x10]
test eax, eax
mov dword [ebp], eax
js 0x7045b69a
mov cl, byte [esi]
mov ebp, ebx
mov dword [esp + 0x10], 0
jmp 0x7045adcf
lea edx, [esp + 0x1c]
mov eax, 0x25
call fcn.70459a60
mov cl, byte [esi]
jmp 0x7045ad90
mov ebx, dword [ebp]
test ebx, ebx
je 0x7045b5e9
sub esp, 0xc
add ebp, 4
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
mov edx, eax
mov eax, ebx
lea ecx, [esp + 0x1c]
call fcn.7045a130
mov cl, byte [esi]
jmp 0x7045ad90
cmp cl, 0x33
je 0x7045b587
mov edx, 4
mov dword [esp + 0xc], 2
jmp 0x7045adcf
cmp edx, 2
je 0x7045b3ff
mov cl, byte [esi]
mov edx, 4
mov dword [esp + 0x10], 0
jmp 0x7045adcf
fstp st(0)
lea ecx, [esp + 0x1c]
mov edx, 0x704626dd
xor ax, ax
call fcn.7045a1d0
mov cl, byte [esi]
jmp 0x7045ad90
mov edx, dword [eax + 4]
add ebp, 8
mov eax, dword [eax]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
jmp 0x7045b250
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
add ebp, 4
mov byte [edx], al
mov cl, byte [esi]
jmp 0x7045ad90
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
lea ebx, [ebp + 8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x7045b1e3
inc esi
mov edx, 4
mov cl, byte [esi]
mov dword [esp + 0xc], 4
jmp 0x7045adcf
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
mov cl, byte [esi]
mov edx, 2
mov dword [esp + 0x10], eax
jmp 0x7045adcf
cmp edx, 2
jne 0x7045b37c
mov dl, 3
jmp 0x7045b37c
lea eax, [ecx - 0x3ff]
cmp ax, 0xff82
mov word [esp + 0x48], ax
jle 0x7045b06c
add word [esp + 0x46], 0x1000
jmp 0x7045b06c
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
call fcn.7045a370
mov cl, byte [esi]
jmp 0x7045ad90
lea eax, [ebx - 0x30]
mov dword [ecx], eax
mov cl, byte [esi]
jmp 0x7045adcf
mov ebx, 0x704626c8
jmp 0x7045b0f1
cmp byte [esi + 1], 0x32
jne 0x7045b471
add esi, 2
mov edx, 4
mov cl, byte [esi]
mov dword [esp + 0xc], 2
jmp 0x7045adcf
mov edx, dword [eax]
add ebp, 4
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0
jmp 0x7045b250
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
add ebp, 4
mov word [edx], ax
mov cl, byte [esi]
jmp 0x7045ad90
mov eax, dword [ebp]
lea ebx, [ebp + 4]
mov ebp, eax
mov dword [esp + 0x60], eax
sar ebp, 0x1f
mov dword [esp + 0x64], ebp
jmp 0x7045b1e3
mov ebx, str._null_
jmp 0x7045b445
movsx eax, word [esp + 0x60]
mov ecx, eax
mov dword [esp + 0x60], eax
sar ecx, 0x1f
mov dword [esp + 0x64], ecx
jmp 0x7045b1e3
mov eax, dword [esp + 0x60]
mov dword [esp + 0x64], 0
and eax, 0xffff
mov dword [esp + 0x60], eax
jmp 0x7045b250
movsx eax, byte [esp + 0x60]
mov ebp, eax
mov dword [esp + 0x60], eax
sar ebp, 0x1f
mov dword [esp + 0x64], ebp
jmp 0x7045b1e3
xor eax, eax
mov dword [esp + 0x64], 0
mov al, byte [esp + 0x60]
mov dword [esp + 0x60], eax
jmp 0x7045b250
lea ecx, [esp + 0x1c]
mov edx, 0x704626e1
mov eax, ebx
call fcn.7045a1d0
mov cl, byte [esi]
jmp 0x7045ad90
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
mov ecx, eax
add ebp, 4
sar ecx, 0x1f
mov dword [edx], eax
mov dword [edx + 4], ecx
mov cl, byte [esi]
jmp 0x7045ad90
lea ecx, [esp + 0x1c]
mov edx, 0x704626e1
mov eax, edi
call fcn.7045a1d0
mov cl, byte [esi]
jmp 0x7045ad90
test cl, cl
je 0x7045b6b2
neg dword [esp + 0x24]
mov eax, dword [esp + 0x20]
or ah, 4
mov dword [esp + 0x20], eax
jmp 0x7045b414
mov dword [esp + 0x28], 0xffffffff
jmp 0x7045b414