Function at 0x4174d0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
call sub.msvcrt.dll__errno
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xfffffffd
mov word [esp + 0x68], cx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], bx
mov dword [esp + 0x74], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa0]
and eax, 0x6000
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x78], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41756e
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
jbe 0x41757c
call fcn.0041b770
test al, 1
mov edx, 3
je 0x417581
mov edx, 2
mov dword [esp + 0x7c], edx
movzx edx, byte [ebp]
lea esi, [esi]
movsx eax, dl
lea esi, [ebp + 1]
test eax, eax
je 0x417627
cmp eax, 0x25
jne 0x417640
mov eax, dword [esp + 0x20]
movzx edx, byte [ebp + 1]
xor ebx, ebx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x5c]
test dl, dl
mov dword [esp + 0x1c], eax
je 0x417617
lea eax, [edx - 0x20]
lea ebp, [ecx + 1]
movsx esi, dl
cmp al, 0x5a
ja case.0x4175f3.1
movzx eax, al
jmp dword [eax*4 + 0x4ae434]
movzx edx, byte [ecx + 1]
mov dword [esp + 0x18], 0
mov ebx, 4
mov ecx, ebp
test dl, dl
jne 0x4175df
movsx eax, dl
mov ebp, ecx
test eax, eax
lea esi, [ebp + 1]
jne 0x41759e
mov eax, dword [esp + 0x74]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x54]
call fcn.00415e00
movzx edx, byte [ebp + 1]
mov ebp, esi
jmp 0x417590
mov eax, dword [esp + 0x18]
sub eax, 2
cmp eax, 1
jbe case.0x4175f3.51
mov ebx, dword [edi]
lea esi, [edi + 4]
test ebx, ebx
je 0x417d69
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x54]
mov eax, ebx
mov edi, esi
call fcn.00415f80
nop
lea esi, [esi]
movzx edx, byte [ebp]
jmp 0x417590
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
sub eax, 2
cmp eax, 1
jbe 0x417a3c
mov eax, dword [edi]
lea ebx, [edi + 4]
lea ecx, [esp + 0x54]
mov edx, 1
mov edi, ebx
mov byte [esp + 0x40], al
lea eax, [esp + 0x40]
call fcn.00415f80
jmp 0x417690
mov eax, dword [esp + 0x58]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x417a6c
fld xword [edi]
lea ebx, [edi + 0xc]
lea eax, [esp + 0x54]
mov edi, ebx
fstp xword [esp]
call fcn.00416f70
jmp 0x417690
mov eax, dword [esp + 0x58]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x417a1c
fld xword [edi]
lea ebx, [edi + 0xc]
lea eax, [esp + 0x54]
mov edi, ebx
fstp xword [esp]
call fcn.004169d0
jmp 0x417690
or dword [esp + 0x58], 0x80
cmp dword [esp + 0x18], 3
je 0x417d20
cmp dword [esp + 0x18], 2
je 0x417db1
mov eax, dword [edi]
lea ecx, [edi + 4]
cdq
cmp dword [esp + 0x18], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
je 0x417e01
cmp dword [esp + 0x18], 5
mov edi, ecx
je 0x417e41
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x48], ecx
sar ecx, 0x1f
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x54]
call fcn.00416600
jmp 0x417690
cmp dword [esp + 0x18], 3
je 0x417cf0
cmp dword [esp + 0x18], 2
je 0x417dc4
xor edx, edx
cmp dword [esp + 0x18], 1
mov eax, dword [edi]
lea ecx, [edi + 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
je 0x417e16
cmp dword [esp + 0x18], 5
mov edi, ecx
je 0x417e64
cmp esi, 0x75
je 0x417794
lea ebx, [esp + 0x54]
mov ecx, edx
mov edx, eax
mov eax, esi
mov dword [esp], ebx
call fcn.00416c00
jmp 0x417690
movzx edx, byte [ecx + 1]
or dword [esp + 0x58], 4
mov ebx, 4
mov ecx, ebp
jmp 0x417613
movzx edx, byte [ecx + 1]
cmp dl, 0x36
je 0x417ccd
cmp dl, 0x33
je 0x417d78
mov dword [esp + 0x18], 0
mov ebx, 4
mov ecx, ebp
jmp 0x417613
test ebx, ebx
jne 0x417852
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x58]
je 0x417de3
mov edx, dword [edi]
lea eax, [esp + 0x54]
lea ebx, [edi + 4]
xor ecx, ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp], eax
mov eax, 0x78
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], edx
mov edi, ebx
call fcn.00416c00
jmp 0x417690
cmp dword [esp + 0x18], 5
mov eax, dword [edi]
mov edx, dword [esp + 0x74]
je 0x417cc3
cmp dword [esp + 0x18], 1
je 0x417dd8
cmp dword [esp + 0x18], 2
je 0x417df7
cmp dword [esp + 0x18], 3
mov dword [eax], edx
je 0x417e54
add edi, 4
jmp 0x417690
movzx edx, byte [ecx + 1]
mov dword [esp + 0x18], 3
mov ebx, 4
mov ecx, ebp
jmp 0x417613
movzx edx, byte [ecx + 1]
cmp dl, 0x68
je 0x417d05
mov dword [esp + 0x18], 1
mov ebx, 4
mov ecx, ebp
jmp 0x417613
mov eax, dword [esp + 0x58]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x4179cd
fld xword [edi]
lea ebx, [edi + 0xc]
lea eax, [esp + 0x54]
mov edi, ebx
fstp xword [esp]
call fcn.00416a80
jmp 0x417690
mov eax, dword [esp + 0x58]
or eax, 0x20
test al, 4
mov dword [esp + 0x58], eax
je 0x4179f1
fld xword [edi]
lea ebx, [edi + 0xc]
lea eax, [esp + 0x54]
mov edi, ebx
fstp xword [esp]
call fcn.00416530
jmp 0x417690
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
test eax, eax
mov ebx, eax
je 0x417da2
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
lea ecx, [esp + 0x54]
mov eax, ebx
call fcn.00415f80
jmp 0x417690
movzx edx, byte [ecx + 1]
cmp dl, 0x6c
je 0x417ca8
mov dword [esp + 0x18], 2
mov ebx, 4
mov ecx, ebp
jmp 0x417613
mov eax, dword [esp + 0x58]
test al, 4
jne 0x417924
fld qword [edi]
lea ebx, [edi + 8]
lea eax, [esp + 0x54]
fstp xword [esp]
mov edi, ebx
call fcn.00416a80
jmp 0x417690
mov eax, dword [esp + 0x58]
test al, 4
jne 0x417953
fld qword [edi]
lea ebx, [edi + 8]
lea eax, [esp + 0x54]
fstp xword [esp]
mov edi, ebx
call fcn.00416530
jmp 0x417690
mov eax, dword [esp + 0x58]
test al, 4
jne 0x417723
fld qword [edi]
lea ebx, [edi + 8]
lea eax, [esp + 0x54]
fstp xword [esp]
mov edi, ebx
call fcn.004169d0
jmp 0x417690
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [edi]
lea ebx, [edi + 4]
lea ecx, [esp + 0x54]
mov edx, 1
mov edi, ebx
mov word [esp + 0x40], ax
lea eax, [esp + 0x40]
call fcn.00415e60
jmp 0x417690
mov eax, dword [esp + 0x58]
test al, 4
jne 0x4176f3
fld qword [edi]
lea ebx, [edi + 8]
lea eax, [esp + 0x54]
fstp xword [esp]
mov edi, ebx
call fcn.00416f70
jmp 0x417690
test ebx, ebx
je 0x417c20
cmp ebx, 3
ja 0x417eb0
cmp ebx, 2
mov eax, 3
cmove ebx, eax
jmp 0x417bc2
cmp ebx, 1
jbe 0x417d35
movzx edx, byte [ecx + 1]
mov ebx, 4
mov ecx, ebp
jmp 0x417613
test ebx, ebx
jne 0x417b3c
movzx edx, byte [ecx + 1]
or dword [esp + 0x58], 0x400
mov ecx, ebp
jmp 0x417613
test ebx, ebx
jne 0x417b3c
movzx edx, byte [ecx + 1]
or dword [esp + 0x58], 0x100
mov ecx, ebp
jmp 0x417613
test ebx, ebx
jne 0x417b3c
movzx edx, byte [ecx + 1]
or dword [esp + 0x58], 0x800
mov ecx, ebp
jmp 0x417613
test ebx, ebx
jne 0x417b3c
movzx edx, byte [ecx + 1]
or dword [esp + 0x58], 0x40
mov ecx, ebp
jmp 0x417613
test ebx, ebx
je 0x417c4b
movzx edx, byte [ecx + 1]
mov ecx, ebp
jmp 0x417613
lea edx, [esp + 0x54]
mov eax, esi
call fcn.00415e00
jmp 0x417690
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x417aae
test ebx, 0xfffffffd
jne 0x417c33
mov edx, dword [edi]
lea eax, [edi + 4]
mov edi, dword [esp + 0x1c]
test edx, edx
mov dword [edi], edx
js 0x417e2c
movzx edx, byte [ecx + 1]
mov edi, eax
mov dword [esp + 0x1c], 0
mov ecx, ebp
jmp 0x417613
sub edx, 0x30
cmp dl, 9
ja 0x417eb0
cmp ebx, 3
ja 0x417eb0
test ebx, ebx
jne 0x417a95
mov ebx, 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x417b3c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
js 0x417d55
lea eax, [eax + eax*4]
movzx edx, byte [ecx + 1]
lea eax, [esi + eax*2 - 0x30]
mov esi, dword [esp + 0x1c]
mov dword [esi], eax
jmp 0x417b40
mov ebx, dword [edi]
mov eax, 0x4ae408
lea esi, [edi + 4]
mov edi, esi
test ebx, ebx
cmove ebx, eax
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x54]
mov edx, eax
mov eax, ebx
call fcn.00415e60
jmp 0x417690
movzx edx, byte [ecx + 1]
or dword [esp + 0x58], 0x200
mov ecx, ebp
jmp 0x417613
movzx edx, byte [ecx + 1]
mov dword [esp + 0x1c], 0
mov ebx, 4
mov ecx, ebp
jmp 0x417613
lea esi, [esp + 0x40]
mov dword [esp + 0x2c], ecx
or dword [esp + 0x58], 0x1000
mov dword [esp + 0x40], 0
call sub.msvcrt.dll_localeconv
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x10
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
lea eax, [esp + 0x3e]
mov dword [esp], eax
call fcn.004117a0
test eax, eax
mov ecx, dword [esp + 0x2c]
jle 0x417c99
movzx edx, word [esp + 0x3e]
mov word [esp + 0x70], dx
movzx edx, byte [ecx + 1]
mov dword [esp + 0x6c], eax
mov ecx, ebp
jmp 0x417613
lea ebp, [ecx + 2]
movzx edx, byte [ecx + 2]
mov dword [esp + 0x18], 3
mov ebx, 4
mov ecx, ebp
jmp 0x417613
mov byte [eax], dl
add edi, 4
jmp 0x417690
cmp byte [ecx + 2], 0x34
je 0x417e78
mov edx, 0x36
mov dword [esp + 0x18], 0
mov ebx, 4
mov ecx, ebp
jmp 0x417613
mov eax, dword [edi]
mov edx, dword [edi + 4]
add edi, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x4177df
lea ebp, [ecx + 2]
movzx edx, byte [ecx + 2]
mov dword [esp + 0x18], 5
mov ebx, 4
mov ecx, ebp
jmp 0x417613
mov eax, dword [edi]
mov edx, dword [edi + 4]
add edi, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x417784
lea eax, [esp + 0x60]
movzx edx, byte [ecx + 1]
mov dword [esp + 0x60], 0
mov ebx, 2
mov ecx, ebp
mov dword [esp + 0x1c], eax
jmp 0x417613
mov eax, dword [esp + 0x1c]
sub esi, 0x30
movzx edx, byte [ecx + 1]
mov ecx, ebp
mov dword [eax], esi
jmp 0x417613
mov edx, 6
mov ebx, str._null_
jmp 0x41767b
cmp byte [ecx + 2], 0x32
mov edx, 0x33
jne 0x41782b
lea ebp, [ecx + 3]
movzx edx, byte [ecx + 3]
mov dword [esp + 0x18], 2
mov ebx, 4
mov ecx, ebp
jmp 0x417613
mov edx, 6
mov ebx, str._null_
jmp 0x417990
mov eax, dword [edi]
add edi, 4
cdq
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x417784
mov eax, dword [edi]
xor edx, edx
add edi, 4
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x4177df
mov word [eax], dx
add edi, 4
jmp 0x417690
or ah, 2
mov dword [esp + 0x60], 8
mov dword [esp + 0x58], eax
jmp 0x417852
mov dword [eax], edx
add edi, 4
jmp 0x417690
movsx eax, word [esp + 0x40]
mov edi, ecx
cdq
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x417784
movzx eax, word [esp + 0x40]
xor edx, edx
mov edi, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x4177df
test ebx, ebx
jne 0x417e93
or dword [esp + 0x58], 0x400
neg dword [esp + 0x5c]
jmp 0x417b8b
movsx eax, byte [esp + 0x40]
cdq
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x417784
mov ebx, edx
add edi, 4
sar ebx, 0x1f
mov dword [eax + 4], ebx
jmp 0x417690
movzx eax, byte [esp + 0x40]
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x4177df
lea ebp, [ecx + 3]
movzx edx, byte [ecx + 3]
mov dword [esp + 0x18], 3
mov ebx, 4
mov ecx, ebp
jmp 0x417613
movzx edx, byte [ecx + 1]
mov dword [esp + 0x60], 0xffffffff
mov edi, eax
mov dword [esp + 0x1c], 0
mov ecx, ebp
jmp 0x417613
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x54]
mov eax, 0x25
call fcn.00415e00
mov ebp, esi
jmp 0x417690