Function at 0x437400
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov eax, dword [esp + 0xd4]
and dword [esp + 0xd0], 0x3000
mov ebx, dword [esp + 0xdc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xd0]
mov word [esp + 0x64], 0
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
mov dword [esp + 0x54], eax
mov eax, 0xffffffff
mov dword [esp + 0x58], eax
mov eax, 0xffffffff
mov dword [esp + 0x5c], eax
mov eax, 0xfffffffd
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x6c], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x437558
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x437558
mov edx, 2
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x9c], eax
movsx ecx, byte [ebx]
inc ebx
test ecx, ecx
je 0x4375cd
lea esi, [esi]
cmp ecx, 0x25
jne 0x4375b0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xd0]
mov ecx, 0xffffffff
mov dword [esp + 0x88], ecx
xor esi, esi
xor ebp, ebp
lea edi, [esp + 0x88]
mov dword [esp + 0x84], eax
mov eax, 0xffffffff
mov dword [esp + 0x8c], eax
movzx eax, byte [ebx]
test al, al
je 0x4375c1
movsx ecx, al
inc ebx
lea eax, [ecx - 0x20]
cmp eax, 0x5a
ja case.0x437551.33
jmp dword [eax*4 + 0x441314]
call fcn.0043ac50
test al, 1
mov edx, 3
je 0x43748d
jmp 0x437488
cmp esi, 3
setbe al
xor edx, edx
cmp ecx, 0x39
setle dl
test edx, eax
je 0x437dde
cmp ecx, 0x2f
jle 0x437dde
test esi, esi
jne 0x4375e0
mov esi, 1
test edi, edi
je 0x43753e
mov eax, dword [edi]
test eax, eax
js 0x4375ec
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
mov dword [edi], eax
jmp 0x43753e
mov eax, ecx
lea edx, [esp + 0x80]
call fcn.00435ee0
movzx eax, byte [ebx]
movsx ecx, al
inc ebx
test ecx, ecx
jne 0x437500
mov eax, dword [esp + 0x98]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 2
jne 0x437598
mov esi, 3
jmp 0x437598
lea eax, [ecx - 0x30]
mov dword [edi], eax
jmp 0x43753e
mov ebp, 2
mov esi, 4
jmp 0x43753e
mov ebp, 2
lea eax, [ebp - 2]
cmp eax, 1
ja 0x437c90
mov eax, dword [esp + 0xe0]
lea edi, [esp + 0x80]
add dword [esp + 0xe0], 4
mov esi, dword [eax]
test esi, esi
je 0x437eec
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], edi
mov edx, eax
mov eax, esi
call fcn.00435fd0
jmp 0x4374f0
mov ebp, 2
lea eax, [ebp - 2]
mov edx, 0xffffffff
cmp eax, 1
mov dword [esp + 0x8c], edx
jbe 0x437cc9
mov eax, dword [esp + 0xe0]
mov edx, 1
add dword [esp + 0xe0], 4
mov eax, dword [eax]
mov byte [esp + 0x28], al
lea eax, [esp + 0x80]
mov dword [esp], eax
lea eax, [esp + 0x28]
call fcn.00435f30
jmp 0x4374f0
cmp byte [ebx], 0x6c
mov ebp, 2
jne case.0x437551.76
inc ebx
mov ebp, 3
or dword [esp + 0x84], 4
mov esi, 4
jmp 0x43753e
movzx eax, byte [ebx]
mov ebp, 1
cmp al, 0x68
je 0x437d35
mov esi, 4
jmp 0x437541
mov edx, dword [esp + 0x84]
or edx, 0x20
test dl, 4
mov dword [esp + 0x84], edx
jne 0x437a17
lea eax, [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 8
fld qword [eax]
fstp xword [esp]
call fcn.00436d50
jmp 0x4374f0
mov edx, dword [esp + 0x84]
or edx, 0x20
test dl, 4
mov dword [esp + 0x84], edx
jne 0x437c12
lea eax, [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 8
fld qword [eax]
fstp xword [esp]
call fcn.00436b80
jmp 0x4374f0
mov edx, dword [esp + 0x84]
or edx, 0x20
test dl, 4
mov dword [esp + 0x84], edx
jne 0x437c59
lea eax, [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 8
fld qword [eax]
fstp xword [esp]
call fcn.00436c70
jmp 0x4374f0
cmp ebp, 4
je 0x437e2e
cmp ebp, 1
je 0x437ea9
cmp ebp, 2
je 0x4377c3
cmp ebp, 3
je 0x437d5f
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x98]
mov dword [edx], eax
jmp 0x4374f0
mov ebp, 3
mov esi, 4
jmp 0x43753e
or dword [esp + 0x84], 0x80
cmp ebp, 3
je 0x437e4d
cmp ebp, 2
je 0x437ec9
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov eax, dword [eax]
cdq
mov dword [esp + 0x28], eax
cmp ebp, 1
mov dword [esp + 0x2c], edx
je 0x437f0a
cmp ebp, 4
je 0x437d9a
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x80]
mov edx, dword [esp + 0x2c]
mov dword [esp], ecx
call fcn.004360e0
jmp 0x4374f0
cmp ebp, 3
je 0x437e6e
cmp ebp, 2
je 0x437e8f
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov edi, dword [eax]
xor eax, eax
mov dword [esp + 0x2c], eax
cmp ebp, 1
mov dword [esp + 0x28], edi
je 0x437f00
cmp ebp, 4
je 0x437d86
cmp ecx, 0x75
je 0x43783a
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, ecx
call fcn.00436360
jmp 0x4374f0
test esi, esi
jne 0x4378d8
mov eax, dword [esp + 0x84]
cmp eax, dword [esp + 0xd0]
je 0x437f21
mov eax, dword [esp + 0xe0]
xor ecx, ecx
add dword [esp + 0xe0], 4
mov edx, dword [eax]
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
mov eax, 0x78
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00436360
jmp 0x4374f0
mov edx, dword [esp + 0x84]
or edx, 0x20
test dl, 4
mov dword [esp + 0x84], edx
je 0x437b0d
mov eax, dword [esp + 0xe0]
lea esi, [esp + 0x80]
add dword [esp + 0xe0], 0xc
fld xword [eax]
fxam
wait
fnstsw ax
and eax, 0x4500
cmp eax, 0x100
fld st(0)
fstp xword [esp + 0x30]
je 0x437df8
mov ecx, dword [esp + 0x38]
mov edi, ecx
and edi, 0x8000
je 0x43797c
or edx, 0x80
mov dword [esp + 0x84], edx
fxam
wait
fnstsw ax
fstp st(0)
and eax, 0x4500
cmp eax, 0x500
je 0x437f52
and ecx, 0x7fff
jne 0x437cfc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebp, edx
or ebp, eax
jne 0x437cfc
mov word [esp + 0x38], 0
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call fcn.00436ef0
jmp 0x4374f0
movzx eax, byte [ebx]
cmp al, 0x36
je 0x437e15
cmp al, 0x33
je 0x437d48
mov ebp, 2
mov esi, 4
jmp 0x437541
mov edx, dword [esp + 0x84]
test dl, 4
je 0x4376f4
lea eax, [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 0xc
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00436d50
jmp 0x4374f0
test esi, esi
jne 0x43753e
or dword [esp + 0x84], 0x400
jmp 0x43753e
test esi, esi
jne 0x43753e
or dword [esp + 0x84], 0x100
jmp 0x43753e
test edi, edi
je 0x437dd2
test esi, esi
sete al
cmp esi, 2
sete dl
or eax, edx
test al, 1
je 0x437dd2
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov eax, dword [eax]
test eax, eax
mov dword [edi], eax
js 0x437db1
xor edi, edi
jmp 0x43753e
lea edx, [esp + 0x80]
mov eax, ecx
call fcn.00435ee0
jmp 0x4374f0
test esi, esi
jne 0x43753e
or dword [esp + 0x84], 0x800
jmp 0x43753e
test esi, esi
jne 0x43753e
or dword [esp + 0x84], 0x40
jmp 0x43753e
mov edx, dword [esp + 0x84]
test dl, 4
jne 0x43792e
mov eax, dword [esp + 0xe0]
lea edi, [esp + 0x80]
add dword [esp + 0xe0], 8
fld qword [eax]
fxam
wait
fnstsw ax
and eax, 0x4500
cmp eax, 0x100
fst qword [esp + 0x30]
je 0x437e0e
movzx eax, word [esp + 0x36]
mov esi, eax
and esi, 0x8000
je 0x437b5a
or edx, 0x80
mov dword [esp + 0x84], edx
fstp qword [esp]
call fcn.00437f80
cmp eax, 0x500
je 0x437f3e
movzx eax, word [esp + 0x36]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
shr eax, 4
shld ecx, edx, 8
shl edx, 8
mov dword [esp + 0x34], ecx
mov ecx, eax
mov dword [esp + 0x30], edx
movzx edx, word [esp + 0x36]
mov esi, edx
and esi, 0xfff
mov word [esp + 0x36], si
and ecx, 0x7ff
jne 0x437d0c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebp, edx
or ebp, eax
jne 0x437d0c
mov word [esp + 0x38], 0
mov dword [esp + 0x10], edi
jmp 0x4379bc
test esi, esi
jne case.0x437551.33
or dword [esp + 0x84], 0x200
jmp 0x43753e
cmp esi, 1
ja 0x4375fb
xor eax, eax
lea edi, [esp + 0x8c]
mov esi, 2
jmp 0x437537
mov edx, dword [esp + 0x84]
test dl, 4
je 0x437737
lea eax, [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 0xc
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00436b80
jmp 0x4374f0
mov edx, dword [esp + 0x84]
test dl, 4
je 0x43777a
lea eax, [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 0xc
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00436c70
jmp 0x4374f0
mov eax, dword [esp + 0xe0]
lea edi, [esp + 0x80]
add dword [esp + 0xe0], 4
mov esi, dword [eax]
test esi, esi
je 0x437ef6
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], edi
mov edx, eax
mov eax, esi
call fcn.00435f30
jmp 0x4374f0
mov eax, dword [esp + 0xe0]
lea edx, [esp + 0x80]
add dword [esp + 0xe0], 4
mov eax, dword [eax]
mov dword [esp], edx
mov edx, 1
mov word [esp + 0x4e], ax
lea eax, [esp + 0x4e]
call fcn.00435fd0
jmp 0x4374f0
lea eax, [ecx - 0x3fff]
mov word [esp + 0x38], ax
jmp 0x4379b8
lea eax, [ecx - 0x3ff]
cmp ax, 0xff83
mov word [esp + 0x38], ax
jl 0x437bc5
mov dword [esp + 0x10], edi
lea eax, [esi + 0x1000]
mov word [esp + 0x36], ax
jmp 0x4379bc
inc ebx
mov ebp, 4
movzx eax, byte [ebx]
mov esi, 4
jmp 0x437541
cmp byte [ebx + 1], 0x32
jne 0x4379f8
mov ebp, 2
add ebx, 2
movzx eax, byte [ebx]
jmp 0x437d3e
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x98]
mov dword [edx], eax
mov ecx, eax
sar ecx, 0x1f
mov dword [edx + 4], ecx
jmp 0x4374f0
movzx eax, byte [esp + 0x28]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x437895
movsx eax, byte [esp + 0x28]
mov edi, eax
sar edi, 0x1f
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
jmp 0x43783a
test esi, esi
jne 0x437f66
or dword [esp + 0x84], 0x400
xor edi, edi
neg dword [esp + 0x88]
jmp 0x43753e
mov esi, 4
xor edi, edi
jmp 0x43753e
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x80]
mov eax, 0x25
call fcn.00435ee0
jmp 0x4374f0
fstp st(0)
mov dword [esp], esi
mov edx, 0x4412f3
xor eax, eax
call fcn.004366b0
jmp 0x4374f0
fstp st(0)
mov dword [esp], edi
jmp 0x437dfd
cmp byte [ebx + 1], 0x34
mov ebp, 3
je 0x437d57
mov ebp, 2
jmp 0x4379fd
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x98]
mov byte [edx], al
jmp 0x4374f0
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 8
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x43783a
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 8
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jmp 0x437895
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov edx, dword [eax]
mov dword [esp + 0x28], edx
jmp 0x437d8f
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov edx, dword [eax]
mov eax, dword [esp + 0x98]
mov word [edx], ax
jmp 0x4374f0
mov eax, dword [esp + 0xe0]
add dword [esp + 0xe0], 4
mov eax, dword [eax]
mov ebp, eax
mov dword [esp + 0x28], eax
sar ebp, 0x1f
mov dword [esp + 0x2c], ebp
jmp 0x43783a
mov esi, 0x4412f8
jmp 0x437636
mov esi, str._null_
jmp 0x437cb0
movzx eax, word [esp + 0x28]
jmp 0x437d8b
movsx eax, word [esp + 0x28]
mov ecx, eax
sar ecx, 0x1f
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
jmp 0x43783a
or eax, 0x200
mov dword [esp + 0x84], eax
mov eax, 8
mov dword [esp + 0x8c], eax
jmp 0x4378d8
mov dword [esp], edi
mov edx, 0x44130d
mov eax, esi
call fcn.004366b0
jmp 0x4374f0
mov dword [esp], esi
mov edx, 0x44130d
mov eax, edi
call fcn.004366b0
jmp 0x4374f0
mov eax, 0xffffffff
xor edi, edi
jmp 0x437537